rindex will find the last '\' for you. As in:
or did it have to be a regex ?my $foo = "\\one\\two\\three\\four" ; my $bar = substr($foo, rindex($foo, "\\") +1) ;
In reply to Re: Quick Regex Needed
by gone2015
in thread Quick Regex Needed
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |