XSD: Password validation

Christian Carlsen

Usenet Archive
Joined
May 25, 2004
Messages
2
Reaction score
0
Hello,
I need to validate a password:
In order for the password to be accepted the following requirements must be met:
At least one uppercase character (position in password is irrelevant) At least one lowercase character (position in password is irrelevant) At least one digit (position in password is irrelevant)

Can anybody help me create a regular expression, for this validation?

Thanks in advance :)
//Christian, Denmark
 

Richard Tobin

Usenet Archive
Joined
Jan 6, 2000
Messages
4,251
Reaction score
0
Christian Carlsen said:
In order for the password to be accepted the following requirements must be met:
At least one uppercase character (position in password is irrelevant) At least one lowercase character (position in password is irrelevant) At least one digit (position in password is irrelevant)

Can anybody help me create a regular expression, for this validation?

It's probably easiest to do this by defining several types derived in a restriction chain, since the pattern facets are effectively anded together. Define a type that has at least one uppercase character (easy), then derive a type from it by restriction that requires at least one lowercase character, then derive a third type that requires at least one digit.

-- Richard
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
548,208
Messages
3,104,798
Members
249,594
Latest member
henrywalsh

Latest Threads

Top