[cl-ppcre-devel] Replacing all matches for a given register

Edi Weitz edi at agharta.de
Sun Aug 13 22:41:24 UTC 2006


On Sun, 13 Aug 2006 14:53:06 -0600, Daniel Gackle <gackle at shaw.ca> wrote:

> 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?

Not much simpler, I think.  I'd use REGEX-REPLACE with a replacement
function in your case.  Note that (if you don't use the "simple calls"
option) your function will be called with all the information you'll
need.  Have you tried that?



More information about the Cl-ppcre-devel mailing list