Skip to content

Instantly share code, notes, and snippets.

@joshhepworth
Created September 4, 2013 19:09
Show Gist options
  • Save joshhepworth/6441398 to your computer and use it in GitHub Desktop.
Save joshhepworth/6441398 to your computer and use it in GitHub Desktop.
Find class usage in HTML.

Use the following regex to search for the usage of a class in some HTML. Replace button as needed.

class\="(?:[A-Za-z\-\s]+ )?button(?: [A-Za-z\-\s]+)?"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment