i have the following regex:
Regex r = new
System.Text.Reg ularExpressions .Regex(@"LES_GA S[\d]{8}\-[\d]{6,7}\.DEL");
I expected it to match filenames like the following:
LES_GAS20080718-0301826.DEL
and it does....but can anyone tell me why this returns true:
bool b = r.IsMatch(@"C:\ dir a\dir b\dir c\LES_GAS200807 18-0301826.DEL");
it's like it just looks at the end of the string.
Regex r = new
System.Text.Reg ularExpressions .Regex(@"LES_GA S[\d]{8}\-[\d]{6,7}\.DEL");
I expected it to match filenames like the following:
LES_GAS20080718-0301826.DEL
and it does....but can anyone tell me why this returns true:
bool b = r.IsMatch(@"C:\ dir a\dir b\dir c\LES_GAS200807 18-0301826.DEL");
it's like it just looks at the end of the string.
Comment