How do you parse an HTML string for image tags to get at the SRC information?

前端 未结 4 1820
清酒与你
清酒与你 2020-12-08 20:26

Currently I use .Net WebBrowser.Document.Images() to do this. It requires the Webrowser to load the document. It\'s messy and takes up resources. <

4条回答
  •  遥遥无期
    2020-12-08 20:53

    If all you need is images I would just use a regular expression. Something like this should do the trick:

    Regex rg = new Regex(@"

提交回复
热议问题