T
Tony Johansson
Hi!
Here I have two simple regular expression.
The first one give true which according to me is correct.
The second one also give true but it should give false according to me
because
I say that a match should exist if you have zero o like tn as in the first
example.but
here I have one o.
So why does it not work as expected to have 0 in min range
status = Regex.IsMatch("tn", "to{0,}n");
status = Regex.IsMatch("ton", "to{0,}n");
//Tony
Here I have two simple regular expression.
The first one give true which according to me is correct.
The second one also give true but it should give false according to me
because
I say that a match should exist if you have zero o like tn as in the first
example.but
here I have one o.
So why does it not work as expected to have 0 in min range
status = Regex.IsMatch("tn", "to{0,}n");
status = Regex.IsMatch("ton", "to{0,}n");
//Tony