Substitutes the specified text in the string at the specified, in accordance with the specified regular expression
function ReplaceRegExpr(aRegExpr: string; aInputStr: string; aReplaceStr : string; aUseSubstitution: boolean = false): string;
Log(ReplaceRegExpr ('\s', '1 2 3 ', '|')); //Result in the log 1|2|3|4|5