Hi i need a regex expression in java syntax that will return the list of guids from the following json
{"status":0,"StressTest":[{"User":[
{"token":"0F6B271C-3D7B-4473-9B20-67E1B79778FD"},
{"token":"0FC5764C-37F3-4348-8AF9-B6A84EA578E1"},
{"token":"22ADCBA3-13FB-439C-BF0C-F383B87670DB"},
{"token":"22B5D91F-5F49-4F60-9165-5DA5241C0F37"},
{"token":"27D91B27-C2FA-4829-8434-10DF496EF139"},
{"token":"27DDD239-279C-46A1-91C7-19525624A495"}]}]}
so i get back just the guids
Thanks for all pointers
You could do this with a regular expression, but it would be much better to use a JSON parser. When you still want to use a regular expression, this one should work:
At least it works on your test data in http://regexpal.com/