Plaster
New
List
Login
text
default
anonymous
2024.07.01 02:33:25
CL-USER> (cl-string-match:find-re "foo.bar" "fooAbar") ;; this shouldn't match, but does. #<CL-STRING-MATCH:RE-MATCH "fooAbar"> CL-USER> (cl-string-match:find-re "foo\.bar" "fooAbar") ;; same deal. #<CL-STRING-MATCH:RE-MATCH "fooAbar"> CL-USER> (cl-string-match:find-re "foo\\.bar" "foo.bar") ;; but this just doesn't work at all NIL CL-USER> "foo\.bar" ;; the single backslash gets parsed out "foo.bar" CL-USER> "foo\\.bar" ;; but the double backslash doesn't get parsed into a single one "foo\\.bar"
Raw
Annotate
Repaste
Edit