Skip to content

Instantly share code, notes, and snippets.

@Toshinaki
Created June 2, 2023 14:18
Show Gist options
  • Save Toshinaki/fdea36fdc80fb3dc8d9b60f7e2851d09 to your computer and use it in GitHub Desktop.
Save Toshinaki/fdea36fdc80fb3dc8d9b60f7e2851d09 to your computer and use it in GitHub Desktop.
Commonly used regular expressions.

All regex are in Javascript syntax.

  • URL validation: (http(s)?:\/\/.)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment