ReplaceRegExpr

Substitutes the specified text in the string at the specified, in accordance with the specified regular expression

Syntax

function ReplaceRegExpr(aRegExpr: string; aInputStr: string;
  aReplaceStr : string; aUseSubstitution: boolean = false): string;

Parameters

  • aRegExpr
  • aInputStr
    • type: string
    • functions: substituted string
  • aReplaceStr
    • type: string
    • functions: string that substitutes occurrences found

Returned value

  • type: string
  • functions: Resulting string

Examples

  1. Log(ReplaceRegExpr ('\s', '1 2 3 ', '|'));
       //Result in the log  1|2|3|4|5