Test, validate and match regular expressions
This PCRE regex matches HTML image tags that are missing the alt attribute. It uses a negative lookahead to check that the string alt= does not appear anywhere before the closing bracket. This is commonly used for web accessibility auditing to identify images that lack alternative text for screen readers.