I am trying to find a template that will allow me to select part of the value of the Parameter = Value element of the URL string. I would like it to be general enough so that I can replace the "Parameter" with any term and get its meaning.
For example, if the URL string (it always follows this general form):
' http://www.mysite.com/home.aspx?userid=53&transaction=2&viewport=property '
I need to be able to get the value of a part of a user ID or transaction or viewport or whatever is selective.
It is advisable that it be as simple as adding a parameter name, and it matches the eveything that follows its = in &. My attempts to create a general purpose matching string ... suck.
I can't use the javascript function or anything else, it should look like a perl regex match (This is for use with Apache JMeter, if you're interested).
I suck in regex: - / Thanks in advance for any help.
source
share