Grabbing the href attribute of an A element

前端 未结 10 2390
悲&欢浪女
悲&欢浪女 2020-11-21 05:06

Trying to find the links on a page.

my regex is:

/]*href=(\\\"\\\'??)([^\\\"\\\' >]*?)[^>]*>(.*)<\\/a>/
10条回答
  •  情话喂你
    2020-11-21 06:10

    preg_match_all("/(]>)(.?)(

    It is tested and it fetch all a tag from any html code.

提交回复
热议问题