replace

The replace method searches a string for a specified value or a regular expression, and it returns a new string where the specified values are replaced.

 

Syntax

System.String replace( searchvalue, System.String newvalue);

 

Parameters

searchvalue

The value, or regular expression, that will be replaced by the new value

newvalue

The value to replace the search value with

 

Return Value

Returns the new string.

 

Remarks

Member of string.

 

Example