Created
September 11, 2009 12:05
-
-
Save tomgullo/185254 to your computer and use it in GitHub Desktop.
groovy regexp
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
static String anInvalidCharacter = /[^-A-Za-z9-9@\s()\,\;\:\.]+/ | |
if (s =~ anInvalidCharacter) | |
//an invalid character |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment