Hello,
My questions are getting simplier but atleast that makes them easier to answer :)
I just have a string which I need to split into words, I could use the substr function to do this but I don't want half a word.
So if I have the string 'This is a test message' I need to make sure it is not longer than 12 characters, but not chop off in the middle of a word, so this would be 'This is a'.
I have looked at Text::Wrap but I think this might be overkill, I know there is a regexp for this, anyone care to remind me?
Thanks, Tom
In reply to Splitting a string into words by webchalkboard
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |