Created
June 4, 2011 14:51
-
-
Save hysios/1007949 to your computer and use it in GitHub Desktop.
a parse array regexp for javascript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'[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