Forum Discussion
Hudson_Donovan_
Nimbostratus
Jun 29, 2006URI String Validation
A newbie question that I hope you can help with.
I am curious to learn whether iRules v4 support any commands other than "equals", "starts_with", "contains" and "ends_with" to validate string data within the URI.
For example, I may need to redirect URLS that contain numeric values
www.domain.com/11111 to one domain
but www.domain.com/abcde to another
I know i can use an If/Else statement to redirect the URL, but when both uri types contain too many variants to list individually, does an iRules function exist that allow us to check the URI via an "IsNumeric" type statement or can we use "less than"/"greater than" type operators to assist us with the identification of at least the numeric ranges.
If so, an example of these at work would be appreciated.
Incidently, I dont have access to tech.f5.com to read any manuals which may exist (Im not our domain administrator).
If anyone knows any good resources that document version 4 rules well it would be appreciated.
F5.com Wiki's (my first introduction to iRules aside from this forum) are very (completely) version 9 heavy and I dont want to think something is possible when its not.
Thanks again
Hudson
1 Reply
- hoolio
Cirrostratus
Hi Hudson,
I think you should be able to use matches_regex and then specify a regular expression.
As for access to tech.f5.com, anyone can access the site. You can register here:
https://login.f5.com/resource/registerEmail.jsp - Click here
If you have an F5 product under an active support contract, you should check the option for 'I have purchased a support contract and would like access to the online support site' to gain access to the downloads section of the site.
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
