Tokenize question: tokenize on words, spaces and punc
This is really a question for XPath regex gurus:
I need to tokenize a string of text such that words, punctuation and spaces are split. So from this:
Oh, what a great day!
I need to get:
('Oh', ',', ' ', 'what', ' ', 'a', ' ', 'great', ' ', 'day', '!')
I've been hacking away at this for a while, but regexps aren't my strong suit. Can anyone help?
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format