T
Tony Johansson
Hi!
I'm new to regular expression
This simple one should mean find all words that begin with a and end with
ion and in between you can have 0 or more character. This doesn't work
string pattern = @"\ba*ion\b";
The pattern should be
string pattern = @"\ba\S*ion\b";
So my question is why can't the pattern have this format string pattern =
@"\ba*ion\b";
when looking for a word that begin with a end end with ion and in between
any char 0 or more.
I mean why does not this * mean any characters one or more.
//Tony
I'm new to regular expression
This simple one should mean find all words that begin with a and end with
ion and in between you can have 0 or more character. This doesn't work
string pattern = @"\ba*ion\b";
The pattern should be
string pattern = @"\ba\S*ion\b";
So my question is why can't the pattern have this format string pattern =
@"\ba*ion\b";
when looking for a word that begin with a end end with ion and in between
any char 0 or more.
I mean why does not this * mean any characters one or more.
//Tony