Hi Semseddin On 24 Apr 2009, at 14:19, =C5=9Eemseddin Moldibi [ Bircom ] wrote:
> > Hi, why "some" includes space chars in x? > >>> parse "a b c" [copy x some ["a"] to end] > =3D3D=3D3D true >>> x > =3D3D=3D3D "a " > >>> parse "a b c" [copy x ["a"] to end] > =3D3D=3D3D true >>> x > =3D3D=3D3D "a" > >>> parse "a b c" [copy x "a" to end] > =3D3D=3D3D true >>> x > =3D3D=3D3D "a" I don't know the reason that parse behaves this way, it may be a bug. =20= It seems to be something to do with the automatic whitespace handling. =20= If you use the /all refinement which lets you handle whitespaces =20 "some" does what you expect. >> parse/all "a b c" [copy x some "a" (probe x) to end] "a" =3D=3D true Regards Peter -- To unsubscribe from the list, just send an email to lists at rebol.com with unsubscribe as the subject.
