Replacing


Replace Method

This will replace all occurrences

string oldText; 
string newText;
oldText = "better solutions";
newText = oldText.Replace("better", "BETTER");

Regular Expression

You can use a regular expression

sText = System.Text.RegularExpressions.Regex.Replace(sText, "---") 


© 2024 Better Solutions Limited. All Rights Reserved. © 2024 Better Solutions Limited TopPrevNext