Reputation: 356
I am trying to improve my regular expression in order to not match this string when it has a D
in it:
www.google.com/.../DE69619938D1?cl=e
My regex :
(DE)([0-9]{1,12})((?:[ABCUT][0-9]?)?)
?
after this group. (working)D
after the numbers I don't want to match the string and I don't know how to make this without losing the first rule.Upvotes: 0
Views: 112