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
/
^[^BC\n]*A[^BC\n]*$
/
gm
Input 1
1
New
This is A test for B or C. This is A test for D or E. This is Atest for F A BBCCCCa BBCCCCA bbbbcccA
Substitution
This is A test for B or C. This is A test for D or E. This is Atest for F A BBCCCCa BBCCCCA bbbbcccA