Subject: Re: Q 4 LISP GURUs: EED retreival Date: Wed, 29 Jan 1997 00:00:00 GMT From: Morten Warankov Organization: ABACUS To: Vladimir Nesterovsky Newsgroups: comp.cad.autocad Vladimir Nesterovsky wrote: > > Morten -- I don't want '( "(" "data" ")" ) > instead of '( "{" "data" "}" ). Of what purpose would it be? For what purpose? I don't know. I didn't ask the question. Remember: Us is not to reason why.... :) To be more serious, sorry if I misunderstood your question, It was all a 5 minutes job. However, the same solution can be used, just by changing some small parts of it. Instead of replacing "{" and "}", you just search for the pairs of them, and make a list of what's in between. How? Search for start bracket and end bracket with no brackets between (simply by putting the second 'while' loop into the first and check for the first occurance; { or } ), find the elements prior to, append them to the listed elements between, and append the elements after. The code should be no longer than the 10 lines in my original solution. However since I notice Serge already have produced one solution which does this, I suppose I don't get the credit to solve it first anyhow, so why waste time on it. (ha ha ha) Regards, Mortenw