XP is just a number | |
PerlMonks |
Re: Splitting multiline string into words, the stuff between words, and newlinesby salva (Canon) |
on Feb 24, 2022 at 09:06 UTC ( [id://11141609]=note: print w/replies, xml ) | Need Help?? |
You can also use split for that in order to not require a regular expression for matching non words:
So, you get words, sequences of new lines and then everything else.
In Section
Seekers of Perl Wisdom
|
|