see pos to find out the position of the last match.
Cheers Rolf
( addicted to the Perl Programming Language)
In reply to Re: index regex by LanX in thread index regex by welle