>perl -wMstrict -le "my $s = qq{foo\nbar\t
no\nnot\tneverx\ty\nz }; ;; my %replace = ( qq{\n} => '
[^<]*}xms; ;; print qq{[[$s]]}; $s =~ s{ $pre (*SKIP) (*FAIL) | ([\n\t]) }{$replace{$1}}xmsg; print qq{[[$s]]}; " [[foo bar
no not neverx y z ]] [[foo
no not neverx y