Last active
November 21, 2016 04:51
-
-
Save stevehenderson/ee0dd92a6b7e2a03ff6ac4cbed10156c to your computer and use it in GitHub Desktop.
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
How to parse this with regex: | |
{"unit":"101","location_z":1.012054,"location_x":0.956146,"name":"Placer(Clodde)","location_y":-0.3787908,"html":"(unset)","label":"0","type":"1","affordance_id":"453450c6-6219-4dbd-bcb7-061f3472b619"} | |
test here: http://regexstorm.net/tester | |
GETS PAIRS | |
(\".+?\":.+?[,}]) | |
GET SINGLES | |
([\"0123456789-].+?[:,}]) | |
CLOSE -- doesn't get numerics | |
(\".+?\") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment