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" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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)

--
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the
subject, without the quotes.


 
______________________________________________________________________________
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to