The real question should be: Is it possible with a simple regex?
Answer: No.
A regex parsing HTML wouldn't be less complex than a full scale HTML parser and consist of various nested sub expressions.
Certainly not a one liner.
In reply to Re^4: Replace empty alt tag on <img> tag
by The Perlman
in thread Replace empty alt tag on <img> tag
by vlearner
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |