SplitRegExpr
Splits the specified string according to the specified regular expression.
Syntax
function SplitRegExpr(aRegExpr: string; aInputStr: string): array of string;
Parameters
- aRegExpr
- type: string
- functions: regular expression
- aInputStr
- type: string
- functions: verified string
Returned value
- type: array of string
- functions: the resulting string array
Examples
var pieces := SplitRegExpr('\s','1'#9'2'#10'3'#13''); for var i:=0 to pieces.Count - 1 do Log(pieces[i]);