Perl Monk, Perl Meditation | |
PerlMonks |
Re: Regex bug? matching multiple newline with /mby haukex (Archbishop) |
on Aug 09, 2021 at 18:58 UTC ( [id://11135740]=note: print w/replies, xml ) | Need Help?? |
You might also be interested in the thread You won't believe what this regular expression does!, where I mentioned in one of the replies that sometimes, when I want the newline/end-of-line to be matched and consumed explicitly, I use (?:\n|\z).
In Section
Seekers of Perl Wisdom
|
|