I want to split a paragraph of text using regex, but /\W+/
splits can't
into can
and t
.
Is there any way to define a regular expression that splits whenever a character other than a-z,A-Z,0-9 and '(single quotes) is encountered?
text=text.split(/\W+/);