Replaces all instances of a specified character with a new one.
[Visual Basic] Public Function Replace( _ ByVal oldChar As Char, _ ByVal newChar As Char _ ) As String [C#] public string Replace( char oldChar, char newChar ); [C++] public: String* Replace( __wchar_t oldChar, __wchar_t newChar ); [JScript] public function Replace( oldChar : Char, newChar : Char ) : String;
A new string with all instances of old characters replaced with the new characters.
The Replace method returns a string with all the places where the specified characters that needed replaceing with all the specified new characters.