Regex to Parse Hyperlinks and Descriptions

前端 未结 6 1768
长情又很酷
长情又很酷 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:19

    Here is a regular expression that will match the balanced tags.

    (?:""'[""'].*?>)(?(?>(?)|(?<-DEPTH>)|.)+)(?(DEPTH)(?!))(?:)

提交回复
热议问题