ScriptCore3.RegExprSubExpressions

function RegExprSubExpressions(const ARegExpr: string; ASubExprs: TStrings; AExtendedSyntax: boolean): integer ARegExpr: Regular expression to be analysed ASubExprs: list of subexpressions found in ARegExpr AExtendedSyntax: must be True if modifier /m will be On while using the r.e. Result: used to indicate if there are missing brackets in ARegExpr

Description
Makes list of subexpressions found in ARegExpr r.e.
 * If Result <> 0, then ASubExpr can contain empty items or illegal ones

For detailed information about Regular Expressions see Regular_Expression on Wikipedia

Example
([A-Z]* [a-z]*) (ab[c]{1,2})* --> Result = 0 ASubExprs: ([A-Z]* [a-z]*) (ab[c]{1,2})* [A-Z]* [a-z]* ab[c]{1,2}