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
/
.*(?i)(?<!subdomain1\.|subdomain2\.)example.org
/
gm
Input 1
1
subdomain1.example.org SUBDOMAIN1.example.org subdomain2.example.org SUBDOMAIN2.example.org SuBdOMain2.eXAMPLE.org blub.example.org example.org othersubdomain.example.org
Substitution
subdomain1.example.org SUBDOMAIN1.example.org subdomain2.example.org SUBDOMAIN2.example.org SuBdOMain2.eXAMPLE.org blub.example.org example.org othersubdomain.example.org