Build, test, and debug regular expressions
This regex captures image file paths that begin with 'img/' directory, allowing optional leading slashes or dots for relative path references. It's designed to extract image URLs from quoted strings in HTML, CSS, or JavaScript code, such as src="img/photo.jpg". The pattern stops at double quotes, making it useful for parsing image attributes and file references in markup.