fork download
  1. <?php
  2.  
  3. $str = 'Company Name Internal Transport Worldwide
  4. Account Manager New Business';
  5.  
  6. $re = "/\b(?:internal\Wtransport|accountmanag|account\Wmanag)\w*/i";
  7. if (preg_match_all($re, $str, $matches)) {
  8. print_r($matches[0]);
  9. }
Success #stdin #stdout 0.01s 23744KB
stdin
Standard input is empty
stdout
Array
(
    [0] => Internal Transport
    [1] => Account Manager
)