I’m trying to use regExp to read URL parameters. I need to perform a Match on the following string :
SomeMoreText&action='{%22JsonParameter%22:[%221234%22]}'&SomeMoreText
The end result should be
'{%22JsonParameter%22:[%221234%22]}'
I’m gessing I need an expression to find everything between &action= and the following &. I tried different expressions with no success and, to be honest, I’m having a lot of difficulty understanding regular expression syntax. The problem here is the colon, quotes (%22) and brackets I think. If it was only text, I believe something like this would work :
/action=([\w\-]+)/
Can anyone help?
Thanks
How ’bout
Live Example | Source