Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Password validation

Status
Not open for further replies.

4345487

Programmer
Dec 31, 2002
132
US

Hi,

Does anybody has a sample of how to check if a string has a least one number and a special character it can have more then one but a least one of each number and special character

Chico
 
Do some research (using google as well as the search facility on these forums) on the following javascript:

- indexOf()
- regexp (with a view to using "match")

We're here to help you with specific problems that you are having with your javascript... but we're not going to write it for you.

Cheers,
Jeff

[tt]Jeff's Page @ Code Couch
[/tt]

What is Javascript? FAQ216-6094
 




I did it using indexOf but I was just looking to see if it was a sample using regexp which I'm no faliar with.

Thank you for the pointers.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top