Title And Alt Tag Regular Expression Image

Find All Links Without Title Attribute & Images Without Alt Using Regular Expressions

These two regular expressions will save you a lot of time when you get tasked with optimising your website for search. These snippets will work in most code & text editors such as SublimeText 2 & 3, Edit Plus and Textmate.

Select All Images With No Title Tag


Select All Images With No ALT Tag


Just a small caveat, never assume that these will match absolutely everything. Sometimes code spanning multiple lines etc. will not be captured by a ‘catch-all’ regular expression.


Leave a Comment