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
.jpg\"
Scraping html, a simple and very loose regex would be: /\
/\
Using a real DOM parser is of course the preferred method.