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
If you want all attribute values, might I suggest using the DOM? Something like element.attributes will work well.
element.attributes
If you insist on a regex //\b\w+="[^"]+"// should get everything.
//\b\w+="[^"]+"//