T
Tony Johansson
Hi!
How can this string "tartvfgby" match this regular expression @"ta.*y";
I mean * means that preceding character may be repeated 0 or more times.
A dot means any single character except the newline character.
So I mean a dot can only take one character but it can repeat the same
because we have a * after.
For example if we have ra*t this will match rat, raat, raaaaaat but no rt or
radfgt
So there must be some strange meaning when we have .*
//Tony
How can this string "tartvfgby" match this regular expression @"ta.*y";
I mean * means that preceding character may be repeated 0 or more times.
A dot means any single character except the newline character.
So I mean a dot can only take one character but it can repeat the same
because we have a * after.
For example if we have ra*t this will match rat, raat, raaaaaat but no rt or
radfgt
So there must be some strange meaning when we have .*
//Tony