The @- special variable contains the start offset of the match and submatches. Possibly what you are looking for.
In reply to Re: position number by Laurent_R in thread position number by mrc