How could i take fontsize, fonttext and fonttype value from following img src
<img
src="bin/contenthandler.php?fontsize=36&fonttext=apple&fonttype=fonts/FOO.ttf"
class="selected content resizable">
I think it can be done with regular expressions but I am bad with them.
Doing it with the location object would be ideal, avoids all the troublesome regex.
Borrowed from:
Parse URL with jquery/ javascript?
and
https://developer.mozilla.org/en/window.location
This will return an object with all the variables of the query.
jsFiddle Demo