mardi 8 novembre 2016

@Pattern with Unicode script \\p{L}* doesn't work

I have problem with javax.validation.constraints.Pattern @Pattern validation.

@Pattern(regexp = "\\p{L}*", message = "Msg")
private String name;

When I'm trying to input any text it doesn't work.

Aucun commentaire:

Enregistrer un commentaire