Created
November 23, 2014 07:44
-
-
Save xcsrz/49f357a9783e56b8b80f to your computer and use it in GitHub Desktop.
Shortest regex I know to match a guid (reliably)
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
/^([0-9a-f]){8}(-([0-9a-f]){4}){4}([0-9a-f]){8}$/i |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment