Skip to content

Instantly share code, notes, and snippets.

@Aleyasen
Created February 4, 2016 20:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Aleyasen/03d6100e00afd8af834b to your computer and use it in GitHub Desktop.
Save Aleyasen/03d6100e00afd8af834b to your computer and use it in GitHub Desktop.
String patternString[][] = {
{"isInitCapitalWord", "[A-Z][a-z]+"},
{"isAllCapitalWord", "[A-Z][A-Z]+"},
{"isAllSmallCase", "[a-z]+"},
//{"isWord", "[a-zA-Z][a-zA-Z]+" },
//{"isAlphaNumeric", "[a-zA-Z0-9]+" },
{"singleCapLetter", "[A-Z]"},
{"containsDashes", ".*--.*"},
{"containsDash", ".*\\-.*"},
//{"singlePunctuation", "\\p{Punct}" },
{"singleDot", "[.]"},
{"singleComma", "[,]"},
{"singleQuote", "[']"},
{"isSpecialCharacter", "[#;:\\-/<>'\"()&]"},
{"fourDigits", "\\d\\d\\d\\d"},
{"isDigits", "\\d+"},
{"containsDigit", ".*\\d+.*"},
{"endsWithDot", "\\p{Alnum}+\\."}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment