2
How to write Reg-Ex to filter '@126.com'
Question asked by Michael Robinson - 12/13/2017 at 4:48 PM
Answered
Could someone tell me how to write a reg-ex that will help me filter on emails from "@126.com"
 
thx
 
Michael

3 Replies

Reply to Thread
0
Scarab Replied
Marked As Answer
Michael,
 
The RegEx would be ^.+@126\.com>$  assuming that you are Filtering based on a Header field such as From or Reply-To.
 
How this breaks down is as follows:
 
^ begin string
. any character (other than carriage-return)
+ one or more times
@126 match string exactly
\. escape special character .
com match string exactly
> match trailing angled bracket for Header field address
$ end string
0
Michael Robinson Replied
thank you Scarab you are a big help
0
echoDreamz Replied
We have a SM server we manage that was receiving TONS of spam from various domains that were numeric only. They use a regex we provided them with very good success...
 
<.+@[0-9]+\.[a-zA-Z]{2,}>
 

Reply to Thread