Menu
Hello everyone,
I have a field in which I will provide something like “id number”. I want to allow to provide “alphanumeric” or only “numeric” string, but not allow if it’s only “alpha” string.
For example:
732874 <— OK (only numbers)
54de4 <— OK (numbers AND letters)
dwkQA <— NOT ALLOWED ( only letters)
I know I must use regExp /[^A-Za-z0-9]/ , but this allows to provide letters only too.
Do you have any idea how to solve it and help me ?
Thank you in advance. ?
Grzegorz.