Hello!
I am fairly new to regular expressions (in PHP in particular, since there seem to be some special requirements/restrictions), and am especially stumped with my most recent attempt at parsing two particular strings.
The first one is a URL in which I want to retrieve the first variable:
http://somesite.come/page.html?var=1234&some=2
So, I want to retrieve "var"'s value explicitly (it will always be an integer). This is not from a URL to my site ("$_GET" isn't what I'm looking for); this is given as a string and nothing more.
The second one is a CSS (well, style) line, which goes something like this:
background: url("/images/dir/dir-20/0-0-0.gif") no-repeat scroll 0pt 0pt transparent; width: 0px; height: 0px;
In this case, I'd like to retrieve "0-0-0.gif" from the string.
Any method which you geniuses can conceive would be greatly appreciated!