i have class student using bean validation api :
@notnull @notempty @notblank @pattern(regexp="^$|^[_a-za-z0-9-\\+]+(\\.[_a-za-z0-9-]+)*@" + "[a-za-z0-9-]+(\\.[a-za-z0-9]+)*(\\.[a-za-z]{2,})$",message="veuillez insérer email valid.") private string email;
the domain of email should :
azert@ecole.com or aqwxcs@ecole.com or ecole@ecole.com
however , domain should finished @ecole.com
how check domain on email property bean validation based on regular expression ?
Comments
Post a Comment