http://qs1969.pair.com?node_id=11128781


in reply to Re: You won't believe what this regular expression does!
in thread You won't believe what this regular expression does!

Are there work-arounds to achieve what you want?

I sometimes use (?:\n|\z) to be explicit that I want the line endings to be consumed by the engine.