Stuart Guthrie wrote:
> Not being a regex expert I was hoping someone could point me at a
> list, forum or just give me a pointer on how to achieve this:
> 
> Field that must have 2 out of 3 of these:
> 
> standard a-z/A-Z
> arabic numbers 0-9
> special chars %$#@

^
([A-Za-z]([0-9]|[EMAIL PROTECTED]))        # 1 alpha followed by 1 number or 1 
punct
|
([0-9]([A-Za-z]|[EMAIL PROTECTED]))     # 1 number followed by 1 alpha or 1 
punct
|
([EMAIL PROTECTED]([A-Za-z]|[0-9]))     # 1 punct followed by 1 alpha or 1 
number
$

All the best,

        Jacinta

-- 
   ("`-''-/").___..--''"`-._          |  Jacinta Richardson         |
    `6_ 6  )   `-.  (     ).`-.__.`)  |  Perl Training Australia    |
    (_Y_.)'  ._   )  `._ `. ``-..-'   |      +61 3 9354 6001        |
  _..`--'_..-_/  /--'_.' ,'           | [EMAIL PROTECTED] |
 (il),-''  (li),'  ((!.-'             |   www.perltraining.com.au   |
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to