0 Replies Latest reply on Oct 9, 2003 2:54 AM by noel.rocher

    Check for password validity rules

    noel.rocher

      Hi all,

      It's not really a JBoss security related question. But a lot of experienced guys read these forums so I hope someone will help me.

      My question :

      With which regular expression (one or more) can we test a password that match some rules as for example :
      Should contain at least 2 punctuation characters (\p{Punct} as described in java API).

      I've tried : [.?\p{Punct}.?]{2,} but it doesn't work.

      Any help ?
      Thanks

      Noel