What is a regex to find the first image in an image tag in an HTML document? My previous tries have not really worked, as they just matched based on .jpg"
and didn't put into account edge cases such as having an image with a cachebuster timestamp at the end (asdf.jpg?581291823
)
Edit: I'm using Node.js. I'd like to do HTML parsing, but we have a lot of documents to parse, so I'm not sure if HTML parsing is the best option as it takes considerably more time.