[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Why is "]" == "\]"?
- To: email@example.com
- Subject: Re: Why is "]" == "\]"?
- From: Oliver Andrich <firstname.lastname@example.org>
- Date: Fri, 10 Mar 95 12:12:19 MET
- In-reply-to: <199503091513.QAA04718@wieden.ai.univie.ac.at>; from "Johann Petrak" at Mar 9, 95 5:20 pm
> > "]" == "\]"
> > All tests said, that these two strings are equal. But how could I
> > parse strings where "]" is command character or so but "\]" is legal
> > syntax for using "]" as a normal character?
> Since \ is an escape character in LISP you have to double it to
> get a string that actually contains the backslash. (see Steele CLtL2, p34)
> (Undefined escape sequences may just ignore the backslash, thus "\["
> is identical to "[").
Ok, I know that too, after reading the Steele, but ....
> So just double your backslash: "\\["
I don't want to preparse my input data with perl or so, but I want to
do the whole job with LISP. And in my input data there are only "\["
and no "\\[". Is there no way to disable the escape sequencing for a
while in order to do the job in LISP?