Emulation of lex like functionality in Perl or Python

前端 未结 8 2094
梦毁少年i
梦毁少年i 2021-01-13 23:46

Here\'s the deal. Is there a way to have strings tokenized in a line based on multiple regexes?

One example:

I have to get all href tags, their corresponding

8条回答
  •  Happy的楠姐
    2021-01-14 00:15

    Look at documentation for following modules on CPAN

    HTML::TreeBuilder

    HTML::TableExtract

    and

    Parse::RecDescent

    I've used these modules to process quite large and complex web-pages.

提交回复
热议问题