Perl 5.12 introduced an experimental regex character class to stand in for every character except one, the newline. The \N
character class is everything but the newline.
In prior versions of Perl, this is the same thing as the .
meta character. That is, it’s the same as long as someone doesn’t add the /s
to the match or substitution operator or the regex quoting operator, or doesn’t insert the option inside the pattern: Continue reading “Use the \N regex character class to get “not a newline””