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

[REBOL] Re: Parsing with 2 conditions

From: richard:coffre:francetelecom at: 10-Apr-2002 14:49

Thanks you for your answer but it doesn't work. A good solution is given by Brett : parse/all {xxxFramexxx} [ [thru "Symbol" | thru "Frame"] to end] -----Message d'origine----- De : Ladislav Mecir [mailto:[lmecir--mbox--vol--cz]] Envoy=E9 : mercredi 10 avril 2002 13:51 =C0 : [rebol-list--rebol--com] Objet : [REBOL] Re: Parsing with 2 conditions Hi Richard, you can try e.g.: parse/all ligne [start: thru "Symbol" :start thru "Frame" to end] , which tests whether both words are present in the text somewhere in any order. Cheers L ----- Original Message ----- From: "COFFRE Richard FTO" Hi, Another parsing questions. 1st question : The following instruction works : if parse/all ligne [thru "Symbol" to end] why the next one doesn't work : if parse/all ligne [ "Symbol" ] 2nd question : I have the instruction "if parse/all ligne [thru "Symbol" to end]" to look for the word Symbol in a string. How can I do to look for Symbol and Frame at the same time ? TIA Richard Coffre France Telecom Orbiscom T=E9l. : 01 47 61 46 28