Question
URL filters and regexes
Do I have to include the delimiters!?
I.e. do I have to write
/fortinet/or
fortinetWhat if I'm matching a path?
Do I write
/fortinet\.com\/blub/or can I change the delimiter which makes it more readable?
|fortinet\.com/blub|or is it already escaping on its own somehow and the following would be enough? (it's not complaining)
fortinet\.com/blubBut then how would it recognize modifiers?
Concerning that: The following technical tip is plain wrong. https://community.fortinet.com/t5/FortiGate/Technical-Tip-URL-Filter-expressions-for-the-FortiGate/ta-p/192746
@CustomerService
- '/i' symbols means: makes the pattern case sensitive. - For example: '/FORTINET/i' will not match with 'fortinet'.
In PCRE /i means make the match case-insensitive. So, the correct formulation would be:
- '/i' symbols means: makes the pattern case INsensitive.
- For example: '/FORTINET/i' will match with 'fortinet' as well as 'FORTINET'
- As well: '/fortinet/i' will match 'fortinet' as well as 'FORTINET'
