string inputString = "1/10 EP Sp'arrowha?wk XT R;TR 2.4GHz Red";
//Characters Collection: (';', '\', '/', ':', '*', '?', ' " ', '<', '>', '|', '&', ''')
string outputString = "1 10 EP Sp arrowha wk XT R TR 2.4GHz Red";
string inputString = 1/10 EP Sp’arrowha?wk XT R;TR 2.4GHz Red; //Characters Collection: (‘;’, ‘\’,
Share
Full disclosure regarding the following code:
new Regex(...);I don’t actually know C#, but I can Google for
"C# string replace regex"and land on MSDNHere’s the correct code:
Demo: http://ideone.com/hrKdJ
Also: http://www.regular-expressions.info/