Help with regex expression RSS Back to forum
2
Try the following one:
bounce-9\d{3}-\d{10}-josh=address\.com@.*
by Krisztián Fekete (Vamsoft)
more than 10 years ago
3
Thanks Krisztian!
I'll give that a shot, but from the initial checks it looks like it'll work.
Josh
by Josh
more than 10 years ago
I get bombarded with various spam with addresses that are very similar, but different enough that a simple expression won't work. I would like to create a regex expression and was wondering if someone could help me with it.
Below are examples of some of the spam email addresses.
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
As you can see they all start with "bounce-9", have a specific number of digits, a hyphen, again and specific number of digits, a hyphen, a connotation of my email address (I've removed my actual email address), and then a changing domain.
I was thinking of setting up a sender blacklist that starts with "bounce-9", checks for a specific number of digits before the hyphen, checks for the hyphen, again checks for a specific number of digits after the hyphen, then checks for a hyphen and the email address string, and the domain would be the wild card.
Can a regex expression be setup to do what I'm wanting to do?
Thanks
Josh