SplitRegExpr

Splits the specified string according to the specified regular expression.

Syntax

function SplitRegExpr(aRegExpr: string; aInputStr: string): array of string;

Parameters

  • aRegExpr
  • aInputStr
    • type: string
    • functions: verified string

Returned value

  • type: array of string
  • functions: the resulting string array

Examples

  1. var pieces := SplitRegExpr('\s','1'#9'2'#10'3'#13'');
    for var i:=0 to pieces.Count - 1 do
      Log(pieces[i]);