regular expression for the following password scheme

hi, need a regular expression for the following password scheme
1. the length of the password must be from 8-12
2. password must contain atleat 1 number
3. password must contain atleat 1 character from the !@#$%
4. password can contain alphabets but no whitespaces

help

[288 byte] By [khawaryunus] at [2007-12-16]
# 1
(?(?=.*?[0-9])(?(?=.*?[!@#%\$])^[0-9a-zA-z!@#%\$]{8,12}$|[!@#%\$])|[0-9])
280Z28 at 2007-9-9 > top of Msdn Tech,.NET Development,.NET Base Class Library...

.NET Development

Site Classified