Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save danmoseley/ba45633b88a4c1474229be9c645f2753 to your computer and use it in GitHub Desktop.
Save danmoseley/ba45633b88a4c1474229be9c645f2753 to your computer and use it in GitHub Desktop.
Regex snippets
Lines not containing 'class'
^(?:(?!class)[\s\S])*$
^((?!class)[\s\S])*$
^(?!.*class).*$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment