Parse URLs out of a HTML page

前端 未结 1 1035
夕颜
夕颜 2021-01-27 11:36

I have a string containing an HTML page downloaded via WinHttpReadData. The string is a simple char*.
I\'ve been trying to figure a way to extract

相关标签:
1条回答
  • 2021-01-27 12:09

    Maybe you should go for the PCRE C API (Available on PCRE site)

    The regex you'll need will be like :

    <a.*?href=[""'](?<url>.*?)[""'].*?>(?<name>.*?)</a>

    This should map too group <url> and <name> within the group structure.

    0 讨论(0)
提交回复
热议问题