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.
In reply to Re^2: You won't believe what this regular expression does!
by haukex
in thread You won't believe what this regular expression does!
by salva
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |