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..
|