you can do:$a="export/home/test/great/great";
(that \z means 'the end of the string')$a =~ s#/great\z##; print $a; # prints "/export/home/test/great"
-- Joost downtime n. The period during which a system is error-free and immune from user input.
In reply to Re: help on reg ex
by Joost
in thread help on reg ex
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |