itsecurityteam
asked on
Regular Expression for chain mail message.
Hello Experts,
I am trying to write a regular expression to block chain mails. The current line I am trying to detect is "send this to at least 10 people" however I want to match based on any number of people and ignores case. I am currently using Ironport as our mail filtering solution. Here is what I have so far:
\Qsend this to at least\E [0-9]
Also, does anyone have any other tricks to catch chain mails.. Thanks
I am trying to write a regular expression to block chain mails. The current line I am trying to detect is "send this to at least 10 people" however I want to match based on any number of people and ignores case. I am currently using Ironport as our mail filtering solution. Here is what I have so far:
\Qsend this to at least\E [0-9]
Also, does anyone have any other tricks to catch chain mails.. Thanks
ASKER
I like this however it does not ignore case. Can you write it to ignore the upper or lowercase of any letter? I checked the documentation on the Ironport and it uses Python for its regular expression. Dont know if this helps.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you for your prompt response!
send this to at least 10 people
send this to at 10 people
send this to 10 people
send to 14 people
send to people
Hope it helps. Cheers
Open in new window