![]() |
|
P is for Practical | |
PerlMonks |
Re: Regex match for Any number of words?by kcott (Bishop) |
on Jan 16, 2022 at 11:40 UTC ( #11140501=note: print w/replies, xml ) | Need Help?? |
G'day sbrothy, It sounds like you just need "split /\W+/, $string"; although, I don't know what the "C++ Boost" connection is.
Is the string you showed representative of your data? Do you have words with hyphens or apostrophes? Are sentences with leading whitespace normal? The simplicity of my solution may be invalid. Perhaps you need something closer to:
— Ken
In Section
Seekers of Perl Wisdom
|
|