cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1474
Views
0
Helpful
1
Replies

Regex content filtering

Analyst42
Level 1
Level 1

Hi,

 

i'm dealing with problem with dictionary filtering. I add regex term to dictionary blocked_dictionary which is used in Default Policy because i need to filter all incoming mails.

 

Regex term >  \s(bc1|[13])[a-zA-HJ-NP-Z1-9]{25,39}\w

 

Problem is, that regex matching terms which starts without space character, for example:

JJT//
1fVUkkklNXNqFpraaDd9LUPLNvDeQW/SlVn

Definition > \s  matches any whitespace character

 

I tested in regex101, regexr many times but every time without match. Is there any what i am doing wrong?

 

Thanks, have a nice day

 

1 Reply 1

Mathew Huynh
Cisco Employee
Cisco Employee

Hey Analyst,

 

I looked into the rule and did some tests on my own and it seems to adhere what we see on regex101 as well. For your tests, are you able to share the body content you're using in the test?

 

Note: you can use the system admin -> trace functionality to run validations if needed


Depending on which item you ticked in your dictionary as well it may match slightly differently; however it has always worked for me on my testing.

 

Thanks,

Mathew

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: