mercredi 29 août 2018

Regex for password is not working

@NotNull
@Pattern(regexp = "(?=.*[0-9])", message = "Password must contain one digit.")
private String password;

the regex that i wrote for password is not working, the problem is not the regex i think @Pattern seems not working, any idea ?

Aucun commentaire:

Enregistrer un commentaire