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

[REBOL] Re: Newbie parsing problem

From: rebol665:ifrance at: 29-Mar-2002 12:30

Hi Richard Try [thru "call" to end] like this. texte: ["without the text" "with call inside" "with call" "without it"] foreach ligne texte [ if parse/all ligne [ thru "call" to end ][ print ligne ] ] HTH Patrick ----- Original Message ----- From: "Richard Coffre" <[pyxos--netcourrier--com]> To: <[rebol-list--rebol--com]> Sent: Friday, March 29, 2002 10:53 AM Subject: [REBOL] Newbie parsing problem Hi, I would like to extract all the lines containing the string call and write them with a newline. I have the following code, but nothing happens, what's wrong ? REBOL [] texte: read/lines %generic4.txt foreach ligne texte [ if parse/all texte [ "call" ] [ write/append %calls.txt ligne ] ] Thanks in advance ------------------------------------------------- Sound Mind, Sound Body Juvénal Lire et être curieux, c'est la même chose Pascal Quignard Qui triomphe de lui-même possède la force Lao-Tseu, extrait du Tao Te King Dans la course à la qualité, il n'y a pas de ligne d'arrivée David Kearns Allez voir mon site : http://www.desala.org ------------------------------------------------------------- NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs, Toolbar... Web/Wap : www.netcourrier.com Téléphone/Fax : 08 92 69 00 21 (0,34 ? TTC/min) Minitel: 3615 NETCOURRIER (0,15 ? TTC/min)