[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.lisp

Re: substitute #\& "&" my-str

William James

10/3/2015 5:38:00 PM

Wade Humeniuk wrote:

> > I'm trying to "un-escape" an "html-encoded" string, and
> > thought that I could use substitue as in:
> >
> >> (substitute #\& "&" "lamb & elephant & "squale"")
> >
> > unfortunately, this doesn't seem to work.
> >
>
> Use cl-ppcre
>
> http://www.cliki.ne...
>
> CL-USER 4 > (cl-ppcre:regex-replace-all "&" "lamb & elephant &
> "squale"" "&")
> "lamb & elephant & "squale""

Gauche Scheme:

(regexp-replace-all* "lamb & elephant & "squale""
"&" "&" """ "\"")

"lamb & elephant & \"squale\""

--
What I would most desire would be the separation of the white and black
races. --- A. Lincoln, July 17, 1858