Forum Discussion
James_Wrubel_48
Nimbostratus
Jul 03, 2009regexp to parse querystring parameters
I am trying to get a list of querystring parameters from the URI. There's an example iRule that does this here:
http://devcentral.f5.com/wiki/default.aspx/iRules/URIInterrogation.html
Th...
hoolio
Cirrostratus
Jul 03, 2009I'd think this looping with string commands would be more efficient than a regex. A foreach loop would probably be about the same. You could test these options using the timing command (Click here).
If you are trying to retrieve the value for a specific parameter, you don't have to loop through each parameter name. You can just use URI::query:
URI::query [HTTP::uri] "param_name"
Aaron
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects