Forum Discussion
Sridhar_111831
Nimbostratus
Sep 28, 2017ASM Parameter Value not matching regex
I'm trying to validate a username parameter. Goal is to make sure the username is in email format. I mentioned in Block Settings to alarm for parameter not matching regex and under parameter I'm using userinput for following regex
"[9/27/2017 4:46 PM] Prabhakaran, Sridhar: ^[a-zA-Z0-9.!$%&'+/=?^_`{|}~-]+@?(?:.?)$ "
I still dont see the violation in logs. Any thoughts what I missed?
- Stanislas_Piro2
Cumulonimbus
Hi,
This is the regular expression for an email
^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$
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