Regular expression for getting HREF from footer

前端 未结 3 1446
梦如初夏
梦如初夏 2021-01-28 05:46

I have a requirement where I need to get the last HREF in the HTML code, means getting the HREF in the footer of the page.

Is there any direct regular expression for the

3条回答
  •  醉话见心
    2021-01-28 06:44

    It's not a good idea to parse html with regular expressions. Have a look at HtmlParser to parse html.

提交回复
热议问题