$ perl -MFile::Basename -e'$f="/usr/local/bin/foo"; print basename( $ +f );' foo [download]
In reply to Re: Simple Regex needed by Huele-pedos in thread Simple Regex needed by Anonymous Monk