Forum Discussion
elvisc_26948
Nimbostratus
Dec 21, 2009Replace URI subset
I am simply trying to look for ch1 and replace that with ch2 in URI... any idea?
URI example:
Convert
/abc/cde/ch1/xxx/yyy/file.txt
To
/abc/cde/ch2/xx...
hoolio
Cirrostratus
Dec 27, 2009Nice work. You could make the search/replace a little more specific by including the directories:
HTTP::path [string map {/ch1/ /ch2/} [HTTP::path]]
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