3 ms·
<img[^>]+>|(\w+) ...has some bugs. The part on the left mistakenly matches `<imgasvaasdf>` and mistakenly misses `<img>`. Better would be: <img\b.*?>|(\w+
by raldi 11y ago
<img[^>]+>|(\w+)
...has some bugs. The part on the left mistakenly matches `<imgasvaasdf>` and mistakenly misses `<img>`. Better would be:
<img\b.*?>|(\w+)