iwasdeadforever googlemail.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 regex googlegroups.com
To unsubscribe from this group, send email to
regex-unsubscribe googlegroups.com
For more options, visit this group at http://groups.go
ogle.com/group/regex
-~----------~----~----~----~------~----~------~--~---
|