My bean have a field called name. I need to do a validation that Name should not contain (), (.), (,), (-), (/), (‘), (@).
I tried this but it did not work.I need help.
@Pattern(regexp="^(?!.*( \\s |.|,|-|/|@|' )).*$",message="should not contain ( ), (.), (,), (-), (/), (‘), (@)")