[REBOL] Re: Help required for a little parsing problem
From: chaz:innocent at: 19-Nov-2000 1:43
parse post [
any [ to "[url]" url_start:
thru "[url]" copy href to "[/url]"
thru "[/url]" url_end:
compose [("<a href = ^"") (href) ("^" target = ^"_blank^">") (href)
Go through the post.
Move to the beginning of the '[url] tag and save that position into the
copy the value of the url into 'href
move to the end of the '[/url] tag and save that position in 'url_end
Replace everything between 'url_start and 'url_end
with a new string composed of three strings and two instances of the value
of the word 'href
('compose concatenates and evaluates)
Please email me off-list with the Perl equivalent.
P.S. Thanks to Gabriele for his Expression Evaluator.
At 04:41 PM 11/18/00 -0000, you wrote: