There's more than one way to do things | |
PerlMonks |
Re: Perl regex. Why does this happen?by hippo (Bishop) |
on Jun 03, 2016 at 09:29 UTC ( [id://1164845]=note: print w/replies, xml ) | Need Help?? |
The problem is that \s matches any type of whitespace including the newline. If you change your regex line to be:
it should work as you intend.
In Section
Seekers of Perl Wisdom
|
|