Problems? Is your data what you think it is? | |
PerlMonks |
Re: splitting punctuation in a textby injunjoel (Priest) |
on Aug 11, 2008 at 16:59 UTC ( [id://703696]=note: print w/replies, xml ) | Need Help?? |
Greetings, I would suggest using a word boundary \b. for instance... Which produces what you want... well close. If you don't want the spaces around your punctuation marks this should do the trick. Update! Upon re-reading your post I am a bit unclear... Do you want to keep the punctuations or not? if not will work. -InjunJoel
"I do not feel obliged to believe that the same God who endowed us with sense, reason and intellect has intended us to forego their use." -Galileo
In Section
Seekers of Perl Wisdom
|
|