range

range(an_index)

Returns the range mateched with the regular expression and groups.

renge(0) returns whole range matched with the regular expression.
range(1), range(2) ... return ranges of capture groups of $1, $2, ...

Parameters
Result

record : {location:integer, length:integer}