fork download
  1. <?php
  2. $string = "example.com/TARGET/noneed/noneed/noooo";
  3. preg_match("#/(.*?)/#", $string, $match);
  4. echo $match[1];
  5. ?>
Success #stdin #stdout 0.02s 13064KB
stdin
Standard input is empty
stdout
TARGET