One thing though is that \n is in the set of \s characters so $text=~s/\s+/ /g; should suffice.my $this = '<thing> condition condition randomness other junk </thing>'; print "before: $this\n\n"; $this =~ s/\n\s*/ /g; print "after: $this\n"; __END__ before: <thing> condition condition randomness other junk </thing> after: <thing> condition condition randomness other junk </thing>
-enlil
In reply to Re: multi line matching problem
by Enlil
in thread multi line matching problem
by jcpunk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |