<?php preg_match('~/\K\w+(?=[^/]*$)~m', 'https://i...content-available-to-author-only...r.com/SyuKFYj', $id);echo $id[0];
Standard input is empty
SyuKFYj
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!