Forum Discussion
mbuk2k_59598
Nimbostratus
Aug 29, 2013Extracting/Removing part of a URI
Hello,
Apologies if this has already been asked, however is it possible to extract part of a URI?
For example; an incoming URL may be:
http://originalurl.com/pages/index.htm/2013/08/15...
Kevin_Stewart
Employee
Nov 13, 2013now to do a list of different possibilities I would just make a list of them? and make the replaceable part a variable?
Are you referring to a list of different URI patterns to replace? If so, just add them in pairs to the [string map ] command:
[string map {"/foo" "" "/bar" ""} [HTTP::uri]]
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
