<?php echo preg_replace(':.*/([^/]*)/$:', '$1', '/user/Administrator/');
Standard input is empty
Administrator
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!