16
rated 0 times
[
18]
[
2]
/ answers: 1 / hits: 25443
/ 13 Years ago, sat, may 28, 2011, 12:00:00
I have some random string, for example: Hello, my name is john.
. I want that string split into an array like this: Hello, ,, , my, name, is, john, .,
. I tried str.split(/[^ws]|_/g)
, but it does not seem to work. Any ideas?
More From » regex