List Info

Thread: Password must contain a Capital letter and a numeral




Password must contain a Capital letter and a numeral
user name
2006-08-21 05:50:52
I need a regex to validate that the password contains
atleast 1 capital
letter and 1 numeral. I am using ^([0-9a-zA-Z])+$ but this
does not
work. Please help.

Thanks
Dev


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Regex" group.
To post to this group, send email to regexgooglegroups.com
To unsubscribe from this group, send email to
regex-unsubscribegooglegroups.com
For more options, visit this group at http://groups.go
ogle.com/group/regex
-~----------~----~----~----~------~----~------~--~---

Password must contain a Capital letter and a numeral
user name
2006-08-21 06:45:10
iwasdeadforevergooglemail.com wrote:
> I need a regex to validate that the password contains
atleast 1 capital
> letter and 1 numeral. I am using ^([0-9a-zA-Z])+$ but
this does not
> work. Please help.

you may want to check some previous posts, there are quite
some similar
questions. 

    ^(?=.*[A-Z])(?=.*[0-9])[0-9a-zA-Z]+$

Xicheng


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Regex" group.
To post to this group, send email to regexgooglegroups.com
To unsubscribe from this group, send email to
regex-unsubscribegooglegroups.com
For more options, visit this group at http://groups.go
ogle.com/group/regex
-~----------~----~----~----~------~----~------~--~---

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )