View Single Post
Old 01-31-2013, 08:02 PM   PM User | #7
Philip M
Supreme Master coder!

 
Philip M's Avatar
 
Join Date: Jun 2002
Location: London, England
Posts: 17,037
Thanks: 197
Thanked 2,411 Times in 2,389 Posts
Philip M has a spectacular aura aboutPhilip M has a spectacular aura aboutPhilip M has a spectacular aura about
Use mine!

Code:
var ts = text.split(/\.|;|\?|!/);   // split at period or semi-colon or ? or !
Does your regex allow you to find a variable word? Or a phrase? Not just wibble!
__________________

All the code given in this post has been tested and is intended to address the question asked.
Unless stated otherwise it is not just a demonstration.

Last edited by Philip M; 01-31-2013 at 08:07 PM..
Philip M is offline   Reply With Quote