in reply to Re: help on reg ex
in thread help on reg ex
would put in $bar everything starting from the first slash. You should instead do:$a =~ s/(\/.*)$//; $bar = $1;
$a =~ s#(/[^/]*)$##; $bar = $1;
-- zigdon
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (z) Re^2: help on reg ex
by Improv (Pilgrim) on May 07, 2003 at 17:16 UTC |