edicl / cl-ppcre

Common Lisp regular expression library
https://edicl.github.io/cl-ppcre/
BSD 2-Clause "Simplified" License
298 stars 43 forks source link

odd behavior with single quote? #6

Closed bhyde closed 11 years ago

bhyde commented 11 years ago
md> (last (pathname-directory (asdf:component-pathname (asdf:find-system "cl-ppcre"))))
("cl-ppcre-2.0.3")
md> (cl-ppcre:regex-replace-all "@" "@hi@" "\\@")
"\\@hi\\@"
t
md> (cl-ppcre:regex-replace-all "'" "'hi'" "\\'")
"hi'hi"
t
md> (values (lisp-implementation-version) (lisp-implementation-type))
"Version 1.9-r15759  (Darwinx8664)"
"Clozure Common Lisp"
md> 
bhyde commented 11 years ago

nevermind, i see that \' has a delightful function in replacements.