V
VJ
I'm trying to strip the characters from a text box...
but I only know how to apply it to text...
for example..
string fname = @"*\John Doe";
string pattern = @"^.*\\";
string name = Regex.Replace(fname, pattern," ");
but how can i do it for a passed variable...
like @Request.Form["fname"];
string fname = @Request.Form["fname"];
string pattern = @"^.*\\";
string name = Regex.Replace(fname, pattern," ");
but I only know how to apply it to text...
for example..
string fname = @"*\John Doe";
string pattern = @"^.*\\";
string name = Regex.Replace(fname, pattern," ");
but how can i do it for a passed variable...
like @Request.Form["fname"];
string fname = @Request.Form["fname"];
string pattern = @"^.*\\";
string name = Regex.Replace(fname, pattern," ");