cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2954
Views
0
Helpful
4
Replies

Regex needed information

Junier Lee
Level 1
Level 1

Hi all,

Can anyone tell me for mail filters, what about this regex means

(?i)@abc\.com|@efg\.com

The bold on the top means what? I cannot find a reference on this , why there must have ?i on it

Can someone explain what is that use and meaning of it

Thanks

2 Accepted Solutions

Accepted Solutions

zalali
Cisco Employee
Cisco Employee

Hi,

The token (?i) that indicates the rest of the regular expression should be treated in case-insensitive mode. Placing this token at the beginning of a case-sensitive regular expression results in a completely insensitive match.


For example, the regular expression “(?i)example” matches Example, eXAmplE, and EXAMPLE.

Please check table "Regular Expression in Rules" of the user guide, as it contains the various regex used in ESA and their descriptions.

You can download the user guides from this link:

http://www.cisco.com/c/en/us/support/security/email-security-appliance/products-user-guide-list.html

Cheers,

Zaid Al-Ali

View solution in original post

4 Replies 4

zalali
Cisco Employee
Cisco Employee

Hi,

The token (?i) that indicates the rest of the regular expression should be treated in case-insensitive mode. Placing this token at the beginning of a case-sensitive regular expression results in a completely insensitive match.


For example, the regular expression “(?i)example” matches Example, eXAmplE, and EXAMPLE.

Please check table "Regular Expression in Rules" of the user guide, as it contains the various regex used in ESA and their descriptions.

You can download the user guides from this link:

http://www.cisco.com/c/en/us/support/security/email-security-appliance/products-user-guide-list.html

Cheers,

Zaid Al-Ali

Hi,

Thanks for the well explained. Appreciate

Robert Sherwin
Cisco Employee
Cisco Employee

Hi,

Thanks for the link, i get what it means