Re: Regex question again

2002-06-27 Thread Felix Geerinckx
on Thu, 27 Jun 2002 15:15:04 GMT, [EMAIL PROTECTED] (David Vd Geer Inhuur Tbv Iplib) wrote: > Can you please assist. I am stuck on a regex again. > > my $dir = "/user/IPlib/and/many/other/dirs"; > > $dir =~ s!/[^/]*\z!!; > > Will make : $dir = "/user/IPlib/and/many/other"; ## so it takes > o

RE: Regex question again

2002-06-27 Thread Hanson, Robert
15 AM To: [EMAIL PROTECTED] Subject: Regex question again Hi, Can you please assist. I am stuck on a regex again. my $dir = "/user/IPlib/and/many/other/dirs"; $dir =~ s!/[^/]*\z!!; Will make : $dir = "/user/IPlib/and/many/other"; ## so it takes off the last dir But how do

Regex question again

2002-06-27 Thread David vd Geer Inhuur tbv IPlib
Hi, Can you please assist. I am stuck on a regex again. my $dir = "/user/IPlib/and/many/other/dirs"; $dir =~ s!/[^/]*\z!!; Will make : $dir = "/user/IPlib/and/many/other"; ## so it takes off the last dir But how do I let it make : $dir = "/IPlib/and/many/other/dirs"; ## But now on the fir