Skip to content

Instantly share code, notes, and snippets.

@hysios
Created June 4, 2011 14:51
Show Gist options
  • Save hysios/1007949 to your computer and use it in GitHub Desktop.
Save hysios/1007949 to your computer and use it in GitHub Desktop.
a parse array regexp for javascript
'[10,10,"asdf\\"a,s\\"df","的位图要求asdf",10,10]'.match(/(\d+(?=,?))|(('|")(.+?[^\\]\3)(?=,?))/g);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment