Stefan `Sec` Zehl sprak:
> If you insist on it beeing a single regexp, I would do it with
> several lookahead assertions ;-)
> 
> print "ok" if /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[\w-]{6,14}$/

After eating sushi with chopsticks, then cleaning my teeth with
toothpicks, I thought of this for some reason:

y|||c<6||y|||c>14||!y|a-z||||!y|A-Z||||!y|0-9||||y|-_a-zA-Z0-9||c||
  print"ok";

||| /-\ |||


http://mobile.yahoo.com.au - Yahoo! Mobile
- Exchange IMs with Messenger friends on your Telstra or Vodafone mobile phone.

Reply via email to