Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
[A-Za-z0-9]{2,30}(@domainA.com|@domainB.com|@domainC.com)(?=CONFIDENTIAL)
/
igm
Input 1
New
this is some text for john@domainA.com this is some text for mary@domainB.com where also pat@domainc.com is copied CONFIDENTIAL this is some text for john@domainA.com this is some text for mary@domainB.com where also pat@domainc.com is copied