[REBOL] Re: A question about a regular expression
From: carl:cybercraft at: 17-Oct-2004 14:14
On Sunday, 17-October-2004 at 12:05:50 you wrote,
>Mmmm however there's a problem...
>If the user wants to get the string between "<td>Test: " and "</td>"
>It won't work...
No - probably not...
If it's complex parsing you want, meaning you want to both select the text between certain
tags and then select specific parts of that text as well, you'd be best to study up on
proper REBOL parsing...
My approach would be to LOAD/MARKUP your file so it's placed into a block then use a
PARSE rule to extract what you need. There's many examples in the docs there. Find
one that does some of what you want and then build on it.
-- Carl Read