ReplaceFirst

Description

Replaces the first substring of a string that matches the given regular expression with the given replacement. A new column is created for the results.

Use

  • Argument:
    • Select an argument. (String)
  • Regex:
    • Enter a regular expression to match with the argument's value.
  • Replacement:
    • Enter a replacement value for the argument values matching with the regular expression.
  • Output field name:
    • Enter an output field name.

Example

ValueRegExReplacementReplaceFirst() returns
Red Blue RedRedGreenGreen Blue Red

Type

Formulas