Perl: the Markov chain saw | |
PerlMonks |
Re: \s matches newline in regex?by kroach (Pilgrim) |
on Jul 22, 2015 at 17:41 UTC ( [id://1135886]=note: print w/replies, xml ) | Need Help?? |
You can use non-greedy matching and $ to match whitespace up until a newline.
In Section
Seekers of Perl Wisdom
|
|