fork(5) download
  1. <?php
  2. $re = "/^(?!.*\\d{7}).*/m";
  3. $str = "1234567\n123456\n12345673536";
  4.  
  5. preg_match_all($re, $str, $matches);
  6. print_r($matches);
Success #stdin #stdout 0s 52488KB
stdin
Standard input is empty
stdout
Array
(
    [0] => Array
        (
            [0] => 123456
        )

)