我如何逃到"*"
clojure "\*"
?似乎无法让它工作:
(s/replace "A*B" #"*" "*")
产生 "A*B"
(当然)
(s/replace "A*B" #"*" "\*")
失败:Unsupported escape character: *
(s/replace "A*B" #"*" "\\*")
再次生产 "A*B"
!
(s/replace "A*B" #"*" "\\\*")
失败:Unsupported escape character: *
再次!
(s/replace "A*B" #"\\\\*" "*")
生产 "A\\*B"
我无法让它产生A\*B
任何想法?谢谢