cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

Advanced Patterns doesn't work in certain context

The problem is related to the "Advanced Patterns" (i.e. Regular expressions).

First of all to "over-simplify" what I want to achieve.. I want to match the word "cat" but not the word "caterpillar".. so the intuitive thing is to use "Look-around assertions":

cat(?!erpillar)

the above expression should match "cat" but not "caterpillar"..

the problem is McAfee uses Google RE2 not PCRE.. and look-around assertions are not supported in Google RE2.

 

So the next intuitive thing is to mix the usage of "Matched Expressions" & "Ignored Expressions":

Matched Expressions:

cat

Ignored Expressions:

caterpillar


Now the problem is that the two are matching! (i.e. the DLP endpoint detects both "cat" & "caterpillar").. why is that?

 

 

Labels (2)
You Deserve an Award
Don't forget, when your helpful posts earn a kudos or get accepted as a solution you can unlock perks and badges. Those aren't the only badges, either. How many can you collect? Click here to learn more.

Community Help Hub

    New to the forums or need help finding your way around the forums? There's a whole hub of community resources to help you.

  • Find Forum FAQs
  • Learn How to Earn Badges
  • Ask for Help
Go to Community Help

Join the Community

    Thousands of customers use the McAfee Community for peer-to-peer and expert product support. Enjoy these benefits with a free membership:

  • Get helpful solutions from McAfee experts.
  • Stay connected to product conversations that matter to you.
  • Participate in product groups led by McAfee employees.
Join the Community
Join the Community