- or download this
m{
A # A
...
[^AB]* # 0 or more non-A and non-B characters
A # an A
}x
- or download this
BEFORE & AFTER REGEX
<> <A01234567890A> A
...
<A01234567890A> <> B FAILED
<A0123456789> <0A> .
<A01234567890> <A> B FAILED
- or download this
<A012345678> <90A> .
<A0123456789> <0A> B FAILED
- or download this
<A01234567890> <A> [^AB]*
<A01234567890> <A> A
<A01234567890A> <> FINISHED