Possible Duplicate:
RegEx to make sure that the string contains at least one lower case char, upper case char, digit and symbol
What would be the regex to make sure that a given string contains at least one character from each of the followings ---
- upper case letter
- lower case letter
- no whitespace
- digit
- symbol
- string length is >=5 and <=10
how to combine all these above criteria to validate a string.