I have a regular expression like
tempString = Regex.Replace(tempString, @"[^a-zA-Z0-9\. \\/:*-\[\]]", "");
first "tempString" is assigned a value "français (France)" but after executing below mentioned expression the value got changed to "fran?ais France"
so i want to retain the original string that assigned initially aven after executing the below expression .
So ahat should be the modifiction to be done on that expression for retaining all characters in my string?

VulpesRank #55 · 29.2K reputationPosted May 12, 2014, 3:11 AM EDT
tempString = Regex.Replace(tempString, @"[^\p{L}0-9\. \\/:*-\[\]]", "");