Forum Discussion
C_D_18583
Nimbostratus
Nov 03, 2005String Manipulation
I have the following piece of code in my iRule
elseif { $uri starts_with "/nexus/" } {
pool pool1 }
elseif { $uri starts_with "/earth/" } {
pool poo...
unRuleY_95363
Nov 04, 2005Historic F5 Account
I don't know if any of this will help, but...
BTW, we also have a command: URI::path
This command has the following forms:
URI::path - returns the complete path excluding the basename.
URI::path - return the portion of the path starting after .
URI::path - return the portion of the path specified.
URI::path depth - return the number of directory levels in the path.
I'd also like to highlight another command that doesn't seem to get much airtime:
URI::compare
This command compares two uris without regard to case or encoding.
Unfortunately it doesn't yet support starts_with, ends_with or contains.
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