- Posted by
- Thanks, I got my point. The following code can work perfectly: var str = "Peter Lois Chris Meg Stewie"; var pattern = /\W+/; result = str.split(pattern); But real question is that why we need another different form to use the Regular Expression. We need to define a tricky code firstly, what is reaso...Posted in Scripts
-   Topics
-   Views
- swipe
May 13, 2009
- Thanks jorrasdk for your post. I try split() before, it won't success running. In your recommended post above, the string object is under UltraEdit. How about general string? var str = "Peter Lois Chris Meg Stewie"; var pattern = /\W+/; result = str.split(pattern); One more question: Can I use alert...Posted in Scripts
-   Topics
-   Views
- swipe
May 12, 2009