fork(12) download
  1. <?php
  2.  
  3.  
  4. preg_match('!/([^/]+)/[^/]*$!', 'http://w...content-available-to-author-only...w.example/test1/test2/test3/', $matches);
  5. echo $matches[1];
  6.  
  7. ?>
Success #stdin #stdout 0.01s 20520KB
stdin
Standard input is empty
stdout
test3