Given a sample string as follows in the equation variable, I have to remove the commas and spaces, and replace × with * and ÷ with /. Is it possible to have one line of Regex.Replace and combine these four patterns into one expression/line?
string equation = "1,250 ×3.5÷ 12";
equationModified = Regex.Replace(equation, @",", "");
equationModified = Regex.Replace(equationModified, @" ", "");
equationModified = Regex.Replace(equationModified, @"×", "*");
equationModified = Regex.Replace(equationModified, @"÷", "/");
Expected output: "1250*3.5/12"