$regml

From Scriptwiki
Revision as of 01:17, 3 February 2011 by Vliedel (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

$regml([name], N)
Properties: pos

This can be used to reference the back referenced (items enclosed in parentheses) values returned by a call to $regex() or $regsub().

If N = 0, returns total number of match strings.
The pos property returns a strings position in the original match text.