Alert Filter - Regex

86 views
Skip to first unread message

matteo.d...@gmail.com

unread,
Jul 20, 2021, 2:43:18 AM7/20/21
to OWASP ZAP User Group
Hi everyone

quick question: i'm testing the alert filter with regex for urls. 
If i want to exclude all sub-urls, like for example www.test.com/test and www.test.com/test/v1 etc. should i write something like this: 


where the " . " stands for "every charachter". 

Seems not to work, is it correct or i'm interpreting it wrong?

Thank you!

Simon Bennetts

unread,
Jul 20, 2021, 3:11:05 AM7/20/21
to OWASP ZAP User Group
Hiya,

A single "." just matches one character. To match a set of any characters you need to use ".*"

Cheers,

Simon

matteo.d...@gmail.com

unread,
Jul 20, 2021, 3:20:19 AM7/20/21
to OWASP ZAP User Group
Solved, i check alone the syntax from the GUI. 

^https?://test.*$
Reply all
Reply to author
Forward
0 new messages