Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Parsing question

From: lmecir:mbox:vol:cz at: 14-Apr-2003 19:29

Hi,
> spacer: charset [#" " #"^/"] > nonspacer: complement spacer > rules: [copy x some nonspacer (print x)] > print parse "aaaa qqqq" rules
compare it with: print parse/all "aaaa qqqq" rules
> I also expected the following code to print true and not false... >
spacer: charset [#" " #"^/"] nonspacer: complement spacer rules: [some nonspacer spacer some nonspacer] print parse "aaaa qqqq" rules Compare it with: print parse/all "aaaa qqqq" rules ; == true
> Any explanations that i can understand :-)
If you want to "manipulate" whitespace, try parse/all instead of just parse
> Thank you ! > > -- > Serge Gilette > ------------------------- > 04 92 28 32 50
Regards -Ladislav