G
gogaz
Hi there,
I have a small problem. I need to replace the "?" character from user
input string to "-". I have tried:
Regex.Replace(sStr,"\?","-"); //GIVES ERROR
Regex.Replace(sStr,@"?","-"); //GIVES ERROR
Regex.Replace(sStr,@"\?","-"); //DOES NOT WORKS AS IT LOOKS FOR "\?"
Please help!
Regards
I have a small problem. I need to replace the "?" character from user
input string to "-". I have tried:
Regex.Replace(sStr,"\?","-"); //GIVES ERROR
Regex.Replace(sStr,@"?","-"); //GIVES ERROR
Regex.Replace(sStr,@"\?","-"); //DOES NOT WORKS AS IT LOOKS FOR "\?"
Please help!
Regards