Skip to content

Instantly share code, notes, and snippets.

@mplacona
Created November 13, 2016 10:14
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 mplacona/a949f1a942c0a2aeab78c0849d9d3301 to your computer and use it in GitHub Desktop.
Save mplacona/a949f1a942c0a2aeab78c0849d9d3301 to your computer and use it in GitHub Desktop.
private boolean isValidPassword(CharSequence value) {
return value.toString().matches("^(?=.*\\d).{4,8}$");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment