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 reply to Re: Regex bug? matching multiple newline with /m
by haukex
in thread Regex bug? matching multiple newline with /m
by NERDVANA
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |