Is your file a Windows file with both \r and \n in it, or a Linux file with just \n?
Try slurping the whole file and tr/// out newlines.
tr/\r\n//d for my $string = do { local $/; <inputfile> };
In reply to Re: Regular expressions across multiple lines
by Anonymous Monk
in thread Regular expressions across multiple lines
by abcd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |