Forum Discussion
Sajid
Cirrostratus
Oct 03, 2019Regexp for complex password
Hi Guys, Need help for below regexp, when HTTP_REQUEST_DATA { set payload [URI::decode [HTTP::payload]] regexp {^.*txtURL=([^&]+).*$} $payload -> gotURL regexp {^.*username=([^&]...
corrado
Altostratus
Oct 16, 2019This might work if there is always a field starting with &, like &txtURL, after the "password=" filed.
I asslumed that since you use a regex that excludes character & , but as you said passwords containing character '&' will not be matched while using this regex you will always have "&" as a character after the password so everything but last & will match.
^.*password=(\K.*)&
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