Hello [EMAIL PROTECTED],

Here's a parse rule that does the trick:

my-table-rule: [
    4 [thru "<table>" thru "</table>"]
    1 [thru "<table>" copy my-text [thru "</table>" to "</table>"]]
    to end
]

"to end" isn't strictly nessesary, but will make parse return true if the text was 
succesfully copied.



Best regards
Thomas Jensen



On 04-Oct-00, [EMAIL PROTECTED] wrote:

> okay maybe I was being too generic.
> 
> Example, parsing a web page to locate the fifth table.  This basically
> involves looking for the fifth occurrence of "<table>" and then the second
> occurrence of "</table>" (as there is an embedded table in one of the
> cells).
> 
> <html>
>     <body>
>         <table></table>
>         <table></table>
>         <table></table>
>         <table></table>
>         <table>
>             <tr>
>                 <td><table></table></td>
>             </tr>
>         </table>
>     </body>
> </html>
> 
> The content I'd like to be copied is "<tr><td><table></table></td></tr>"
> (don't ask why I'd want this)
> 
> Hope that clears up what I'm trying to do. Cheers,
> 
> 
>     Jamie


Reply via email to