fork(1) download
  1. <?php
  2.  
  3. $re = '/^(?=.*\bWord1\b)(?=.*\bWord2\b)(?=.*\bWord3\b)/';
  4. $str = "Word4 Word2 Word1 Word3 Word5 Word7";
  5.  
  6. $myPregMatch = (preg_match($re, $str));
  7. if ($myPregMatch){
  8. echo "FOUND !!!";
  9. }
Success #stdin #stdout 0.02s 52432KB
stdin
Standard input is empty
stdout
FOUND !!!