49
rated 0 times
[
50]
[
1]
/ answers: 1 / hits: 80584
/ 11 Years ago, tue, april 30, 2013, 12:00:00
I want to check if a string is STRICTLY ALPHANUMERIC in javascript.
i have tried this:
var Exp = /^[0-9a-z]+$/;
if(!pwd.match(Exp))
alert(ERROR)
But the problem with this is it passes input sting if it contains all alphabet or all numeric, i want the function to pass if it contains both Characters and Numbers.
More From » regex