[ale] Perl Regexe questions
    Christopher Fowler 
    cfowler at outpostsentinel.com
       
    Tue Jun 15 18:37:16 EDT 2004
    
    
  
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
    
    
More information about the Ale
mailing list