in reply to Regex bug? matching multiple newline with /m
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).
|
|---|