parse default behavior
[1/5] from: robert::muench::robertmuench::de at: 21-Sep-2001 15:59
Hi, I'm just trying to use parse to handle a filename thing. The filename
contains some spaces like:
file: %this is my file.txt
parse file "." results in
["this" "is" "my" "file" "txt"]
I expected:
["this is my file" "txt]
Any idea? Robert
[2/5] from: dockimbel:free at: 21-Sep-2001 16:11
Robert M. Muench
wrote:
> Hi, I'm just trying to use parse to handle a filename thing. The filename
> contains some spaces like:
<<quoted lines omitted: 4>>
> ["this is my file" "txt]
> Any idea? Robert
Sure, use parse/all and you'll get what you've expected.
HTH,
DocKimbel.
[3/5] from: hallvard:ystad:helpinhand at: 21-Sep-2001 16:10
>> parse/all "this is my file.txt" "."
== ["this is my file" "txt"]
>>
~H
Du skrev (Friday 21.09.2001, kl. 15.59):
[4/5] from: robert:muench:robertmuench at: 21-Sep-2001 16:30
> -----Original Message-----
> From: [rebol-bounce--rebol--com] [mailto:[rebol-bounce--rebol--com]]On Behalf Of
<<quoted lines omitted: 3>>
> Subject: [REBOL] Re: parse default behavior
> Sure, use parse/all and you'll get what you've expected.
Grrr... Guys, I think I need to program more again with Rebol. Frightening how
fast this knowlege moves to off-line memory ;-)) Robert
[5/5] from: al:bri:xtra at: 22-Sep-2001 8:17
> Hi, I'm just trying to use parse to handle a filename thing. The filename
> contains some spaces like:
<<quoted lines omitted: 5>>
> Any idea? Robert
>> file: %this is my file.txt
== %this is my file.txt
>> parse/all file "."
== ["this is my file" "txt"]
Andrew Martin
ICQ: 26227169 http://zen.scripterz.org
Notes
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted