fork(3) download
  1. <?php
  2. $SearchDate = '2013-02';
  3. $file = '2013-02-fileNameMightBeAlphaOr1234567890.pdf';
  4. if(preg_match('#^' . $SearchDate . '.*?\.pdf$#', $file)) {
  5. echo "Matched\n";
  6. }
  7. ?>
Success #stdin #stdout 0.01s 20568KB
stdin
Standard input is empty
stdout
Matched