Getting the exception when validating the email using regular expression
Using the below line of code
.match("^[A-Z0-9._%+-]++@[A-Z0-9.-]++.[A-Z]{2,}+$")
Getting the exception when validating the email using regular expression
Using the below line of code
.match("^[A-Z0-9._%+-]++@[A-Z0-9.-]++.[A-Z]{2,}+$")
It's the extra "+"s. Have you tried
.match("^[A-Z0-9._%+-]+@[A-Z0-9.-]+.[A-Z]{2,}$")
P.S. you are only matching full-capital addresses without "a-z".