Problem with Regular Expressions in Delphi Seattle 10.
Problem with Regular Expressions in Delphi Seattle 10.
I have created a reg exp pattern '[A-Za-z0-9]{1,20}', which should allow up to 20 characters between A-Z, a-z or 0-9.
But TRegEx.IsMatch returns true on all input strings that I have tried, that certainly shouldn't pass:
LFoundMatch := TRegEx.IsMatch('$$%%RR2 111', '[A-Za-z0-9]{1,20}');
//LFoundMatch is always true...
What am I missing?
I have created a reg exp pattern '[A-Za-z0-9]{1,20}', which should allow up to 20 characters between A-Z, a-z or 0-9.
But TRegEx.IsMatch returns true on all input strings that I have tried, that certainly shouldn't pass:
LFoundMatch := TRegEx.IsMatch('$$%%RR2 111', '[A-Za-z0-9]{1,20}');
//LFoundMatch is always true...
What am I missing?
Comments
Post a Comment