Gabriele Many thanks for the explanation. It makes a great deal of sense in that context as it preserves the positions of "arguments/data":
>> a: parse "1;2;3;4;;;;;9;10" none == ["1" "2" "3" "4" "" "" "" "" "9" "10"] >> a/1 == "1" >> a/9 == "9" >> a/5 == "" I was parsing Rebol code, the empty block in the result was a nuisance. I solved my problem by not being so lazy and specifically "parsing" using space, tab and newline rather than none. I did check the user guide but didn't see any reference to the specific "position preservation" behaviour only : "The parse function splits the input argument, string, into a block of multiple strings, breaking each string wherever it encounters a delimiter, such as a space, tab, newline, comma, or semicolon. The none argument indicates that no other delimiters other than these." User Guide 15.2 (Perhaps I was looking in the wrong place.) I also note that this behaviour seems restricted to commas and semi-colons: >> parse "a^-^-^-" none == ["a"] >> parse "b^/^/^/^/" none == ["b"] >> parse "c,,,," none == ["c" "" "" ""] >> parse "d ;;;;" none == ["d" "" "" "" ""] Regards Peter -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gabriele Santilli Sent: 31 May 2005 18:16 To: Peter WA Wood Subject: [REBOL] Re: Parse - Bug? Hi Peter, On Monday, May 30, 2005, 12:48:14 PM, you wrote: PWW> I submitted these problems to RAMBO. I don't know whether the fix PWW> will make View 1.3 though. "Those are not bugs. The default behavior of PARSE string none (as stated in the manual) is to allow , and ; as default. It was designed to easily parse argument lists (like those passed in command lines) and CSV speadsheet files." -Carl Regards, Gabriele. -- Gabriele Santilli <[EMAIL PROTECTED]> -- REBOL Programmer Amiga Group Italia sez. L'Aquila --- SOON: http://www.rebol.it/ -- 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: 267.2.0 - Release Date: 27/05/2005 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.322 / Virus Database: 267.2.0 - Release Date: 27/05/2005 -- To unsubscribe from the list, just send an email to lists at rebol.com with unsubscribe as the subject.
