Skip to content

Instantly share code, notes, and snippets.

@pfist
Created September 12, 2017 23:12
Show Gist options
  • Save pfist/1c6b56a7f310f1447ff22fadedd36c8c to your computer and use it in GitHub Desktop.
Save pfist/1c6b56a7f310f1447ff22fadedd36c8c to your computer and use it in GitHub Desktop.
Useful JavaScript Regex Patterns
// Test for words/phrases that may or may not contain dashes
/^full[-| ]time$|^part[-| ]time$/i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment