[cl-ppcre-devel] empty line matches with cl-ppcre

Edi Weitz edi at agharta.de
Tue Jul 13 17:06:47 UTC 2004


Should be fixed now. Please try.

> CL-USER> (cl-ppcre:regex-replace-all (cl-ppcre:create-scanner "^$" :multi-line-mode t) *str* "!")

It's shorter to write

  (cl-ppcre:regex-replace-all "(?m)^$" *str* "!")

instead. This will also allow the compiler macro to compile the regex
at load time.

Cheers,
Edi.




More information about the Cl-ppcre-devel mailing list