in reply to Search a match to a regex from the END of a string

Doctrin,

And there is 'rindex' which is very fast and easy to use.

perl -e '$d="/usr/local/bin/perl"; $i=rindex($d,"\/"); print substr +($d,$i+1),"\n";'
which prints 'perl'. The Camel book has examples of how to do recursive searches.

Good Luck...Ed

"Well done is better than well said." - Benjamin Franklin