in reply to Re: Re: In search of regex advice
in thread In search of regex advice

Use the /s regex modifier. It causes '.' to match newline (which it otherwise does not match):
my $str = "abc\ndef"; $str =~ /(b.*e)/; print "1[$1]\n"; # 1[] Use of uninitialized value! $str =~ /(b.*e)/s; print "2[$1]\n"; # 2[bc\nde]
Cheers!
David