string.rEReplace()

Uses a regular expression (RE) to search a string for a string pattern and replace it with another. The search is case-sensitive.

string.rEReplace( regex=string, substring=string, scope=string )

Returns: String

Argument Description
regex
string, required

Regular expression to replace.

Alias: reg_expression

substring
string, required

replacement

scope
string, optional
  • one (default): Replace the first occurrence of the regular expression.
  • all: Replace all occurrences of the regular expression.

Examples

See also