I want to check the given string is alphanumeric or not. i.e. the expected output is as follows
123
should retun falseabc
should retun falsea123
should retun true1a23
should retun true
I tried with the ^[a-zA-Z0-9]*$
regex. It is not working as expected. Can anyone suggest the working peggyjs
regex? Thanks.