Capture quoted and unquoted strings to same regex capture group – PHP
Regex PCRE2 (PHP >= 7.3) I have a multi line string containing several <img> tags. Using regex, I want to capture: a.) the whole img tags that contain a src attribute and b.) the content of that src attribute. The…