Goldy Arora
Goldy Arora

Reputation: 1

Need help regarding creating a Regex for email id match

I am very new to regex and need help.

I am looking for a regex which matches only if any of 3 email ids are found in the message headers (lets say [email protected], [email protected] and [email protected]) if there is any email id in sender header then it shouldn't match.

Is it possible to create this kind of regex? if yes, please advise.

Regards, Goldy [email protected]

Upvotes: 0

Views: 87

Answers (1)

Pankaj
Pankaj

Reputation: 10095

You can try below code

\w+@\w+.\w{3}

Upvotes: 0

Related Questions