المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Regex question



C# Programming
12-01-2009, 01:41 PM
I hace some code which starts:


if (textBox1.Text.Length > 0)
{
String pat = "*.csv";
Regex r = new Regex (pat, RegexOptions.IgnoreCase);
Match m = r.Match(textBox1.Text);
if (m.Success)
{
GetCSV(textBox1.Text);
}


which is giving me the error: "parsing "*.csv" - Quantifier {x,y} following nothing."

What am I doing wrong please?