[REBOL] Re: stripping characters...
From: petr:krenzelok:trz:cz at: 6-Jun-2001 0:10
----- Original Message -----
From: "Umesh Vaghela" <[uvaghela--egain--com]>
Sent: Tuesday, June 05, 2001 11:31 PM
Subject: [REBOL] stripping characters...
> I am new to Rebol and I need help with parsing.
> I parse a web page down to a numeric value say 2.5. At times, this value
> in italics and has a tag <i> therefore it appears as <i>2.5
> How can I check for the existence and if present, remove the tag?
parse/all read http://your-url-here [
some [ ; to repeat parsing ...
here: ; mark the current position
(for i 1 3 1 [remove here]) ; execute rebol code ...
:here ; return back into parse context marking from
where should we start ...
I just hope it will work, it is quite some time I used such "complicated"
parse statements :-))
PS: and if you want to use just one line: write %my-site.html replace/all
read http://my-site.html "<i>" ""