read
There are a couple of ways, to extract a single URL-parameter from a given string. A simple and easy way is to do it with a regular expression.
The regex also works, if there is an hash parameter at the end like
http://url.com?myvalue=123#top