|
|
|
|
|
- Example: Various replacements
Example: Various replacements The following example replaces the occurrences of a word in a string with another word. ReplacedString is string ReplacedString = Replace("ABACAD", "A", "x") Â // ReplacedString = "xBxCxD" ReplacedString = Replace("ABACAD", "A", "") Â Â // ReplacedString = "BCD" ReplacedString = Replace("BABAR", "BA", "x") Â // ReplacedString = "xxR" ReplacedString = Replace("BABAR", "", "x") Â Â // ReplacedString = "BABAR"
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|