|
|
| Don't ask to ask, just ask | |
| PerlMonks |
Re^2: Splitting a string into wordsby ikegami (Pope) |
| on Aug 11, 2005 at 17:12 UTC ( #483044=note: print w/ replies, xml ) | Need Help?? |
|
(?:\s|$) works better than \s. An other alternative is \b, which will chop after a word, but before punctuation.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||