How to replace symbol "%" with a word "Percent".
My original string is "Internal (%) External (%)". The string should be "Internal (Percent) External (Percent)"
Using regular expression, how I can replace this symbol?
Thanks in advance. Atul
You don't need a Regex here, you can use a regular replace. For example using .net:
string s = "Internal (%) External (%)";
s = s.Replace("%", "Percent");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With