I
Ioannis Vranos
What is the difference among the following. Please correct me if I am
wrong (this is not a homework, I am just checking System::Regex these
days and have not figured out everything yet).
"a*": As far as I know it means nothing (=it matches even the empty
string ""), or a string consisting of character 'a' followed by 0 or
more characters(?).
"a+": It means a string (=up to the first whitespace as is the case of
all the regular expressions) consisting of character 'a' followed by 0
or more characters.
"a.*": Character 'a' followed by one and 0 or more characters.
"a.+": Character 'a' followed by one and 0 or more characters (same
effect as the above?).
"a.": Character 'a' followed by one character.
wrong (this is not a homework, I am just checking System::Regex these
days and have not figured out everything yet).
"a*": As far as I know it means nothing (=it matches even the empty
string ""), or a string consisting of character 'a' followed by 0 or
more characters(?).
"a+": It means a string (=up to the first whitespace as is the case of
all the regular expressions) consisting of character 'a' followed by 0
or more characters.
"a.*": Character 'a' followed by one and 0 or more characters.
"a.+": Character 'a' followed by one and 0 or more characters (same
effect as the above?).
"a.": Character 'a' followed by one character.