billy_cool
Member since Jul 21, 2009
- Profile: /members/3882-billy-cool.htm
- Comments: 1
Recent Blog Comments By billy_cool
-
Ask Ben: Parsing CSV Strings With Javascript Exec() Regular Expression Command
Posted on Jul 21, 2009 at 3:12 PM
Since the delimiter is space, you can replace it with ',' using a litle bit of regex: somestring.replace(/(^\s*|\s*$)/, ","); And then use String.split() to accomplish the task. KISS.... read more »