Forum Discussion
SSHSSH_97332
May 14, 2012Nimbostratus
Regular Expression to Force Parameter to be in IP Format
i need to force parameter value to be in IP format : ( 3 digits . 3 digits . 3 digits . 3 digits ) , i found option called regex ( regular expression ) under parameters Tab . How can i define regex t...
nathe
May 14, 2012Cirrocumulus
SSHSSH
([0-9]{3,}\.){3,3}[0-9]{3,}
By putting in this regex expression it will look for a parameter in the format xxx.xxx.xxx.xxx (but not xx.xx.xx.xx or similar) Is that what you're after?
Also, F5 has a neat regex validator tool (App Security, Options, Tools, RegExp Validator) where you can pop this string in and enter a test string e.g. 111.111.111.111 as an example, and it will tell you whether there's a match or not.
Hope this helps,
N
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