in reply to Search a match to a regex from the END of a string
And there is 'rindex' which is very fast and easy to use.
which prints 'perl'. The Camel book has examples of how to do recursive searches.perl -e '$d="/usr/local/bin/perl"; $i=rindex($d,"\/"); print substr +($d,$i+1),"\n";'
Good Luck...Ed
"Well done is better than well said." - Benjamin Franklin
|
|---|