fork(3) download
  1. <?php
  2. $str = "/Duitsland|/groepsreizen fietsen|Stars/1";
  3. preg_match("/[^|\/]+/", $str, $match);
  4. echo $match[0];
Success #stdin #stdout 0.02s 52432KB
stdin
Standard input is empty
stdout
Duitsland