D
Derek Stone
In my continuing inability to completely understand regular expressions I
have a new one for you.
I'd like to capture a string "A" unless it is anywhere in between string "B"
and string "C".
Therefore some matches are:
XYZAHIJ
ABC
BCA
Non matches include:
BAC
BXYZAHIJC
BAXYZC
Also, since I'm trying to replace "A" and only "A" the expression needs to
exclude the rest of the match. I assume that means using non-capturing
groups, but again, they and I don't mix.
Thank you,
Derek Stone
EliteVB.com
have a new one for you.
I'd like to capture a string "A" unless it is anywhere in between string "B"
and string "C".
Therefore some matches are:
XYZAHIJ
ABC
BCA
Non matches include:
BAC
BXYZAHIJC
BAXYZC
Also, since I'm trying to replace "A" and only "A" the expression needs to
exclude the rest of the match. I assume that means using non-capturing
groups, but again, they and I don't mix.
Thank you,
Derek Stone
EliteVB.com