Description


A quick guide to using wildcards in regex expressions


Requirements


None. To implement in MPmail you will need an admin login.


Guide


Special characters need to be prefixed to be used literally

Special characters include

.

To treat the following character literally use

\

Meaning of Special characters

. : wildcard, matches any single character
\ : treat next character literally
* matches the PREVIOUS character any number of times

Examples

To match any email address from manageprotect.com

Regex expression:
.*@manageprotect\.com

Explanation:
.* = any text, any length
@manageprotect = literal
\. = treat . as literal
com = literal

To match emails from any person with email prefix 'chris', at any outlook email address (.fr or .com.au for example)

regex expression:

chris.*@outlook\..*

Explanation

chris = literal

.* = any text, any length

@outlook = literal

\. = treat . as literal

.* = any text, any length