FIRST POINT -----------
Thanks for urging me to do this... :)
Thanks for making it that quick. I will try it.
SECOND POINT ------------
Well, you could compute n from what you know but that would imply creating a new regular expression for each iteration which is probably not what you want.
Can you confirm me that you see no other way of doing it? Right now in my code, I just do the full scan and throw the results away if the start was to far in the string. I've not tried compiling a new regex at each iteration but I guess it will be longer.
Cheers, Sebastien.