JSFiddle - React, Tailwind, and code Playground
JavaScript
// shows that . is treating \r\n as two different characters
console.log( "%\r\n%".match( /%.%/s ) )
// shows that \r\n is supported for $
console.log( ..."%\r\n%".matchAll( /^%$/gm) )
// shows how JavaScript will split \r\n for ^
console.log( ..."%\r\n%".matchAll( /^(%|)/gm) )