Regex to Parse Hyperlinks and Descriptions

前端 未结 6 1858
长情又很酷
长情又很酷 2020-12-11 07:20

C#: What is a good Regex to parse hyperlinks and their description?

Please consider case insensitivity, white-space and use of single quotes (instead of double quote

6条回答
  •  孤城傲影
    2020-12-11 08:14

    See this example from StackOverflow: Regular expression for parsing links from a webpage?

    Using The HTML Agility Pack you can parse the html, and extract details using the semantics of the HTML, instead of a broken regex.

提交回复
热议问题