and the output -use strict; use warnings; my $data = do {local $/; <DATA>}; $data =~ y/ \n/ /s; # add the following if you want to strip space after > # and before < characters. # $data =~ s/(?<=>)\s|\s(?=<)//gm; print "$data\n"; __DATA__ <thing> condition condition randomness other junk more junk </thing>
<thing> condition condition randomness other junk more junk </thing>
In reply to Re: multi line matching problem
by Roger
in thread multi line matching problem
by jcpunk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |