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
r"
(?i)(?:English )?(?:(?<!German )\bapple\b)(?!\s+from\s+Dutch\b)
"
gm
Input 1
German apple is good. Apple is nice. Where is the apple? English apple have worms. English people are nice.Apple from Dutch is sour.
Substitution
German apple
German apple is good. Apple is nice. Where is the apple? English apple have worms. English people are nice.Apple from Dutch is sour.