rewriting re-find-all to be iterative