Created
August 6, 2014 17:42
-
-
Save kevindb/93245717e29a26fe792c to your computer and use it in GitHub Desktop.
CF GUID
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
public string function getGuid(){ | |
return insert("-", createUUID(),23); | |
} | |
public boolean function getIsGuid( | |
required string guid | |
){ | |
return isValid("regex", arguments.guid,"^[a-fA-F\d]{8}-([a-fA-F\d]{4}-){3}[a-fA-F\d]{12}$"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment