fork(8) download
  1. <?php
  2. $re = '/^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?!.* )(?=.*^[a-zA-Z0-9]).{8,16}$/m';
  3. $str = 'Jtuhn
  4. 12J@k
  5. jok
  6. Joan 12@45
  7. Jghf2@45
  8. Joan=?j123j
  9. ';
  10.  
  11. preg_match_all($re, $str, $matches);
  12. print_r($matches);
  13.  
  14. ?>
Success #stdin #stdout 0.01s 83072KB
stdin
Standard input is empty
stdout
Array
(
    [0] => Array
        (
            [0] => Jghf2@45
            [1] => Joan=?j123j
        )

)