Last active
February 17, 2021 02:32
-
-
Save warrenlalata/c0092e85a78611f57460c611be081654 to your computer and use it in GitHub Desktop.
RegEx cheatsheet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
numeric only | |
/^\d+$/ | |
alphanumeric, dash and underscore with space | |
/^[a-z\d\-_\s]+$/i | |
detect non alphanumeric chars | |
/[^a-zA-Z\d]/ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment