fork(1) download
  1. <?php
  2.  
  3. $line = 'topp.*.a=jdbs_watcher';
  4.  
  5. preg_match("/(.*)\.(.*)\.(.*)=(.*)/", $line, $matches);
  6. array_shift($matches);
  7. list($ws, $layer, $perm, $role) = $matches;
  8.  
  9. echo $ws." - ".$layer." - ".$perm." - ".$role."\n";
Success #stdin #stdout 0.01s 20520KB
stdin
Standard input is empty
stdout
topp - * - a - jdbs_watcher