fork(4) download
  1. <?php
  2. $subject = "IDperson, Inscription, GenomaPrintOrder, GenomaPrintView, NewPrintOrder";
  3. $pattern = '/\b([^,]*PrintOrder[^,]*)\b/';
  4. preg_match_all($pattern, $subject, $matches, PREG_SET_ORDER);
  5. foreach ($matches as $val) {
  6. echo "Matched: " . $val[1]. "\n";
  7. }
  8. ?>
Success #stdin #stdout 0.02s 52472KB
stdin
Standard input is empty
stdout
Matched: GenomaPrintOrder
Matched: NewPrintOrder