RegEx for extracting HTML Image properties

前端 未结 6 1496
走了就别回头了
走了就别回头了 2021-01-28 12:02

I need a RegEx pattern for extracting all the properties of an image tag.

As we all know, there are lots of malformed HTML out there, so the pattern has to cover those p

6条回答
  •  粉色の甜心
    2021-01-28 13:08

    Your best bet is to use something like HTML Agility Pack instead of using regex. It's designed to handle a lot of cases and can save you more than a few headaches due to hammering out edge cases

提交回复
热议问题