I have the regex as below. If number 1 is somewhere in the middle of the string, it is not throwing an error. But if the number is at the end, it is throwing validation error
NUÑEZ1 - error
NU1ÑEZ - working fine
nameValidator = /^[w'-,.()~`!#$%^{}s][^|":<>[]“/;@=+?[]]*$/;