Does Javascript RegExp support POSIX expressions? -


i have password <input> box in <form> element html body

when user click on submit button in sign form, i can javascript determine whether string user typed in password box combination of alphabet and/ or numbers using following code

$("#password1").val().match(new regexp(/[a-za-z1-9]{1,}/)); 

however when tried using expression below, returns "null" gives me impression posix expressions not supported in javascript... or somewhere along line missing something?

$("#password1").val().match(new regexp(/[[:alnum:]]{1,}/)); 

posix expressions such :alnum: are not supported, though other backslash-escaped character classes (like \w word characters including alphanumeric characters , underscore) allowed.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -