Reference.StringReplace History

Hide minor edits - Show changes to output

October 03, 2010, at 08:06 PM by Tom Igoe -
Changed lines 25-26 from:
* [[StringEquals | equals]]()
* [[StringEqualsIgnoreCase | equalsIgnoreCase]]()
to:
* [[StringSubstring | substring]]()
* [[StringToLowerCase | toLowerCase]]()
* [[StringToUpperCase | toUpperCase]]()
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:
[[StringObject | 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
* [[Tutorial/StringReplace]]

!!!!See also
* [[StringEquals | equals]]()
* [[StringEqualsIgnoreCase | equalsIgnoreCase]]()

Share