M
Mark
Hi,
why oh why doesn't this work as per any other language I
have used regexes with;
--------
Regex r = new Regex("[A-Z]{2}");
bool test = r.IsMatch("ACD");
--------
The boolean 'test' is true, despite the {2} quantifier
specifies 'exactly two'. Why is this?
Perl/ Java performs this match correctly - e.g. false. Is
this a bad implementation of regexes? Or am I missing
something?
Mark
why oh why doesn't this work as per any other language I
have used regexes with;
--------
Regex r = new Regex("[A-Z]{2}");
bool test = r.IsMatch("ACD");
--------
The boolean 'test' is true, despite the {2} quantifier
specifies 'exactly two'. Why is this?
Perl/ Java performs this match correctly - e.g. false. Is
this a bad implementation of regexes? Or am I missing
something?
Mark