String.Replace(String, String) Method

Top 

Description

Returns a modified copy of the calling String in which all occurences of stringToReplace have been replaced with replacementString.

 

Timing Precision Mode

This page describes functionality in nanosecond timing precision mode.

Click here to see the documentation for this object in millisecond timing precision mode.

 

Method Signature

String.Replace(

String stringToReplace,


String replacementString)

 

 

Arguments

stringToReplace


Description:

The string or character to find and replace in the returned String.

 

 

replacementString


Description:

The string or character to use in place of the substrings matched by stringToReplace.

 

 

 

Return Value

Type:

string

 

 

Returns a modified copy of the calling String in which occurences of stringToReplace have been replaced with replacementString.

 

Syntax

myString1 = myString2.Replace(myString3, myString4);

 

 

See also

String Object

String.Replace

Parsing Dates and Times

Parsing Arbitrary String Data

Parsing Arbitrary String Data