I’m no regex expert but I’ve managed to fudge together what I thought would be a functional check for whether a form filler is trying to use new line characters in text fields. My regex is:
(?<=l^\r\n])\R(?=R^\r\n])
It looks like it should work:
But when I implemented the regex in my web form entering anything in the field results in the input failing the validation check:
What am I missing? Do web forms use new line characters as part of the field? Why would a single word with no spaces or anything match my pattern?