Ammon Thanks for the suggestion. I've worked out that if I use parse "string" " ^-^/" I get what I was expecting.
The real issue with parse "string" none is the empty block that it returns when it finds " ; " in the string. It doesn't create and empty block for "^-" or "^/". Regards Peter -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ammon Johnson Sent: 24 May 2005 10:18 To: [EMAIL PROTECTED] Subject: [REBOL] Re: Parse - Bug? Try... parse/all "string" none HTH!! ~~Ammon ;~> On 5/23/05, PeterWAWood <[EMAIL PROTECTED]> wrote: > When simply splitting a string including a "stand-alone" semi-colon, > pars= e > returned an empty block at the position of the semi-colon. It doesn't >do this when it encounters a "stand-alone" tab or newline. >=20 > >> parse "this string includes a semi-colon ; <-there" none > =3D=3D ["this" "string" "includes" "a" "semi-colon" "" "<-there"] > >> parse "this string includes a newline ^/ <-there" none > =3D=3D ["this" "string" "includes" "a" "newline" "<-there"] > >> parse "this string includes a tab ^- <-there" none > =3D=3D ["this" "string" "includes" "a" "tab" "<-there"] =20 Is this a >bug or a feature? >=20 > Personally I would prefer it if "parse string none" left semi-colons >untouched. >=20 > Regards >=20 > Peter >=20 >=20 > -- > No virus found in this outgoing message. > Checked by AVG Anti-Virus. > Version: 7.0.322 / Virus Database: 266.11.15 - Release Date: >22/05/2005 =20 =20 =20 > -- > To unsubscribe from the list, just send an email to lists at >rebol.com with unsubscribe as the subject. >=20 > -- To unsubscribe from the list, just send an email to lists at rebol.com with unsubscribe as the subject. -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.322 / Virus Database: 266.11.15 - Release Date: 22/05/2005 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.322 / Virus Database: 266.11.15 - Release Date: 22/05/2005 -- To unsubscribe from the list, just send an email to lists at rebol.com with unsubscribe as the subject.
