How to allow any character in RegEx? -
current use following regex user enter password
^\w{8,16}$
now understand, \w allows a-z, a-z, 0-9 , _ character. want allow character length between 8 , 16. how doing it? thanx lot in advance :)
firstly, use word count need rather regex.
if must, .{8,16}
should work, .
matches single char, no matter is.
edit: preempt next question surely be, password validation regular expression, might want check out of these blogs:
http://nilangshah.wordpress.com/2007/06/26/password-validation-via-regular-expression/
http://www.zorched.net/2009/05/08/password-strength-validation-with-regular-expressions/
or 'password validation stackoverflow' on google
Comments
Post a Comment