[cl-ppcre-devel] added a minor example for regex-replace

Mac Chan emailmac at gmail.com
Thu Mar 23 18:28:27 UTC 2006


See attached html file. Just trying to make the already superb
documentation more complete.

* (cl-ppcre:regex-replace "(be)(nev)(o)(lent)"
                          "benevolent: adj. generous, kind"
                          #'(lambda (match &rest registers)
                              (format nil "~A [~{~A~^.~}]" match registers))
                          :simple-calls t)
"benevolent [be.nev.o.lent]: adj. generous, kind"

-- Mac
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/cl-ppcre-devel/attachments/20060323/703ad095/attachment.html>


More information about the Cl-ppcre-devel mailing list