cancel
Showing results for 
Search instead for 
Did you mean: 

Negative regex

Jump to solution

I am experimenting with blocking certain user agent in V7 and found that rather than specifying all the User Agents I dont want it would be easier to just tell it to match anything that does not have MSIE in the user agent field.  Regex is a beast and i tried to put a negative match in the wildcard list but no luck.  any suggestions how to achieve this?

0 Kudos
1 Solution

Accepted Solutions
eelsasser
Level 15

Re: Negative regex

Jump to solution

I think you're over-thinking it.

Try:

Header.request.get("user-agent") does not match "*MSIE*"

1 Reply
eelsasser
Level 15

Re: Negative regex

Jump to solution

I think you're over-thinking it.

Try:

Header.request.get("user-agent") does not match "*MSIE*"