J
jim_adams
I would like to match a string between AB that does not contain the
word "bad" and contains upto 5 characters ending in ";"
This is what I have so far, but it does not work. It does not group
the string "BAD" and instead matches any string that has "B", "A" or
"D" in it.
A(?<TAG>(([^;^(BAD)]{0,5})))B
For "ADDDDDB", <TAG> should contain "DDDDD"
For "AZZ;XXB", <TAG> should contain "ZZ;"
For "ABADB", <TAG> should be empty
Thanks,
Jim
word "bad" and contains upto 5 characters ending in ";"
This is what I have so far, but it does not work. It does not group
the string "BAD" and instead matches any string that has "B", "A" or
"D" in it.
A(?<TAG>(([^;^(BAD)]{0,5})))B
For "ADDDDDB", <TAG> should contain "DDDDD"
For "AZZ;XXB", <TAG> should contain "ZZ;"
For "ABADB", <TAG> should be empty
Thanks,
Jim