Eljay
Jun 27, 2019Cirrus
Using SCAN to validate an URI
I need to validate an URI. I'd like to use a policy but iRule works as well.
I need to check if an URI is between 2 and 8 characters long and that it contains only digits and upper or lower letters. The regex expression is something like this " ^[a-zA-Z0-9]{2,8} ", but how can I use scan to do the same thing.
If the validation fails then I want to reset the connection, if it is a valid URI then I want to send it to the pool.
How can I solve this problem?
Thanks in advance.