h3
Member since Feb 19, 2009
- Profile: /members/2957-h3.htm
- URL: http://haineault.com
- Comments: 1
Recent Blog Comments By h3
-
Ask Ben: Parsing CSV Strings With Javascript Exec() Regular Expression Command
Posted on Feb 19, 2009 at 3:36 PM
I think that's pretty much the RegExp you need: 'website "content approval" new'.match(/^(\w+)\s?"(.*)"\s?(\w+)$/i); Outputs: ["website "content approval" new", "website", "content approval", "new"] You could use ".slice(1)" to pop the first element, which is obviously not needed. cheers... read more »