Using JavaScript I’m trying to split a paragraph into it’s sentences using regular expressions. My regular expression doesn’t account for a sentence being inside brackets and I would like to keep the delimiter.
I’ve put an example of the code in jsFiddle.net here
I took the match approach rather than split. It could be tighter (e.g. what if a sentence ends with
..., etc).http://jsfiddle.net/DepKF/1/