Skip to main content
Solved

Unexpected Match in Email Address Detection Policy Using Regular Expression

  • May 20, 2025
  • 2 replies
  • 79 views

Maho Fujino
Netskope Partner

When creating a policy to detect email addresses, I used the following regular expression:
[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}

However, the string "csv test" triggered a detection, even though it does not contain an "@" symbol and therefore should not match the expression above.

Is there any limitation or specific behavior in how regular expressions are interpreted on the Netskope side that might explain this?

Best answer by Gonzalo Martinez Salmeron

Hi,

 

I'm testing the following regex (a modified version of the one you're using) directly in the Netskope validator, and it seems to correctly detect in several tests, as shown in the image.

 

RegEx: ^[a-zA-Z0-9]+@[a-zA-Z0-9]+\.[a-zA-Z]{2,}$

 

 

Regards!

This topic has been closed for replies.

2 replies

Hi,

 

I'm testing the following regex (a modified version of the one you're using) directly in the Netskope validator, and it seems to correctly detect in several tests, as shown in the image.

 

RegEx: ^[a-zA-Z0-9]+@[a-zA-Z0-9]+\.[a-zA-Z]{2,}$

 

 

Regards!


Maho Fujino
Netskope Partner
  • Author
  • Netskope Partner
  • 1 reply
  • May 28, 2025

 

Thank you so much!
I'll go ahead and try using that regular expression.