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)(?:English )?(?:(?<!German )\bapple\b)
/
gm
Input 1
German apple is good. Apple is nice. Where is the apple? English apple have worms. English people are nice.
Extraction
German apple is good. Apple is nice. Where is the apple? English apple have worms. English people are nice.