I have a regex with more than one register and wish to replace each occurrence of one of those registers using a replacement function. I've written code to do this using do-scans, but it seems like there should be a simpler way. Is there? Thanks, Dan