in reply to Nth match.
...and don't forget to look into the code of that modules to find out how it's done :-)