Reference.StringReplace History

Hide minor edits - Show changes to markup

October 03, 2010, at 08:06 PM by Tom Igoe -
Changed lines 25-26 from:
to:
October 03, 2010, at 07:53 PM by Tom Igoe -
Changed lines 19-20 from:

void

to:

another String containing the new string with replaced characters.

October 03, 2010, at 07:50 PM by Tom Igoe -
Added lines 1-26:

String

replace()

Description

The String replace() function allows you to replace all instances of a given character with another character. You can also use replace to replace substrings of a string with a different substring.

Syntax

string.replace(substring1, substring2)

Parameters

string: a variable of type String
substring1: another variable of type String
substring2: another variable of type String

Returns

void

Example

See also

Share