in reply to help on reg ex
If you want to generically remove the last element, and save it to $bar, you can do:$a =~ s/\/great$//;
I hope this helps.$a =~ s/(\/.*)$//; $bar = $1;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(z) Re^2: help on reg ex
by zigdon (Deacon) on May 07, 2003 at 16:23 UTC | |
by Improv (Pilgrim) on May 07, 2003 at 17:16 UTC |