[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ale] Perl Regexe questions




I'm trying to strip the file name from the following string:

/opt/SAM/SystemConfig/vtun.pl

I'm using the following regext:

m/\/(.+)/;

That seems to only work if there is only one '/' in the name.
Since the file can be called with any pathname I need to strip
all the way to the last '/'  Is there a way to do this with
regex or should I use strip and get the last element of
the array?

Thanks,
Chris