Parsing problem

Started by hsmyers, April 09, 2008, 08:55:58 AM

Previous topic - Next topic

hsmyers

> s
"[Event this is the first event [Event this is the second event [Event and this is the third"

> (regex "[\[]" s 0)
("[" 0 1)
> (parse "[\]]" s 0)

regular expression in function parse : "offset 91 missing terminating ] for character class"

If regex is happy, what is parse's problem? Please enlighten me.



--hsm



UPDATE: uh--- Duh! How about wrong order of parameters in parse? Ignore this post please...
\"Censeo Toto nos in Kansa esse decisse.\"—D. Gale \"[size=117]ℑ♥λ[/size]\"—Toto

newBert

#1
If you type:
> (parse s "[\]]"  0)
Note the position of 's' (before the regex)

You get:
("[Event this is the first event [Event this is the second event [Event and this is the third")
Is this what you expect ?



Sorry, I didn't see:
QuoteUPDATE: uh--- Duh! How about wrong order of parameters in parse? Ignore this post please...


:D
<r><I>>Bertrand<e></e></I> − <COLOR color=\"#808080\">><B>newLISP<e></e></B> v.10.7.6 64-bit <B>>on Linux<e></e></B> (<I>>Linux Mint 20.1<e></e></I>)<e></e></COLOR></r>