Skip to content

Instantly share code, notes, and snippets.

@ifthenelse
Created September 26, 2013 10:28
Show Gist options
  • Save ifthenelse/6712382 to your computer and use it in GitHub Desktop.
Save ifthenelse/6712382 to your computer and use it in GitHub Desktop.
Useful regexp snippets for quick find/replace fixes on Sublime Text 2 and 3
// find all anchor tags without 'title' attribute
<a\s+((class|id|href|)="[^"]+"\s*)+/?>
// find all img tags without 'alt' attribute
<img\s+((width|height|border|class|id|src|usemap|hspace|vspace)="[^"]+"\s*)+/?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment