ask for a RE pattern to match TABLE in html

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • oyster

    ask for a RE pattern to match TABLE in html

    that is, there is no TABLE tag between a TABLE, for example
    <table >something with out table tag</table>
    what is the RE pattern? thanks

    the following is not right
    <table.*?>[^table]*?</table>
  • Stefan Behnel

    #2
    Re: ask for a RE pattern to match TABLE in html

    oyster wrote:
    that is, there is no TABLE tag between a TABLE, for example
    <table >something with out table tag</table>
    what is the RE pattern? thanks
    >
    the following is not right
    <table.*?>[^table]*?</table>
    Why not use an HTML parser instead? Try lxml.html.



    Stefan

    Comment

    Working...