Tag Info

New answers tagged


Find sbuilder[.]Append[(]{.*}[)] Replace s += \1 You can use {} to specify which substring you want to use in the replace. Adding another {} would work too, and you can use \2 to use that substring.


Try this : string trimtext = Regex.Replace(text, @"s+", " ").Trim(); I hope it help.

Top 50 recent answers are included