Dewi
asked on
isalpha(),isalphanumeric(),isnumeric()
I need all above functions in js (using regexp)
I don't want to create own function using a loop
Thanks
I don't want to create own function using a loop
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi mplungjan,
Thx for your prompt reply,
but what about isAlpha() and isAlphaNumeric() ?
Thx for your prompt reply,
but what about isAlpha() and isAlphaNumeric() ?
Yeah - I didn't have them off the top of my head.. I will look
ASKER
Hi mplungjan,
Thx a lot, ur links was very useful
Thx a lot, ur links was very useful
ASKER
well done !
ASKER
well done !
\w was including the underscore so I think you want
isAlpha = /^\[a-zA-Z]+$/;
isAlphaNum=/^\[a-z0-0A-Z]+ $/;
isAlpha = /^\[a-zA-Z]+$/;
isAlphaNum=/^\[a-z0-0A-Z]+
ASKER
btw, i still can't find isAlpha()
can you help me on this ? thx
can you help me on this ? thx
ASKER
uppsss.. just ignored my last comment
thanks ...
thanks ...
and change "+" to "*" if you allow the fields to be empty
Also make SURE it has
value=""
in the tag to make sure it is a string even when it is empty.
Also make SURE it has
value=""
in the tag to make sure it is a string even when it is empty.
ANd I had a typo: isAlphaNum=/^\[a-z0-0A-Z]+ $/;
is
isAlphaNum=/^\[a-z0-9A-Z]+ $/;
is
isAlphaNum=/^\[a-z0-9A-Z]+
if (isInteger.test(form.myFie