Help for this page

Select Code to Download


  1. or download this
    /^.*(?=.{10,})(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[@#$%^&+=]).*$/
    
  2. or download this
    /^(?=.{10})(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[@#\$%^&+=])/s
    
  3. or download this
    /.{10}/s && /\d/ && /[a-z]/ && /[A-Z]/ && /[@#\$%^&+=]/
    
  4. or download this
    lenght() >= 10 && /\d/&&1 + /[a-z]/&&1 + /[A-Z]/&&1 + /[@#\$%^&+=]/&&1
    + == 4
        or die;
    
  5. or download this
    use List::Util qw( sum );
    
    lenght() >= 10 && sum( /\d/, /[a-z]/, /[A-Z]/, /[@#\$%^&+=]/ ) == 4
        or die;
    
  6. or download this
    m{
        (?{ 0 })
    ...
        (?(?{ $^R != 3 })(?!))
    }xs
        or die;