Regarding the '(?s)': Good point. I must admit, I did not recognize (obviously) that. I'm not used to it. You're right.
Regarding the "emulate the -z": Perl has a similar switch. Checkout perldoc perlrun and look for the first command switch description ;-)
edit: s/command line/command/
In reply to Re^3: Unable to match newline
by linuxer
in thread Unable to match newline
by robinson
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |