Getting alt tags with regex
You need to parse the HTML and validate the tags, use the following link, it includes a C # library for parsing HTML tags and you can loop through the tags and get the number of tags: Parsing HTML Tags .
a source to share
If you want to do this, just look at the page, then CSS selectors might be better if your browser supports: not selector.
Install selectorgadget bookmarklet. Activate it on your page and then set the next selector in the input field and hit the enter key.
img:not([alt])
If you automate it and have DOM access for HTML, you can use the same selector.
a source to share
Regexes are fundamentally bad at parsing HTML (see Can you give some examples of why it is difficult to parse XML and HTML with regex? For what). You need an HTML parser. See Can you give an example of parsing HTML with your favorite parser? for examples using various parsers.
a source to share