Thread regex problem
(1 answers)
Opened by Gast at 2008-02-11 19:16
Ja.
Code (perl): (dl
)
1 2 3 4 5 my $oldlink = 'www.google.de/foo/bar.html'; my @ls = split("\/", $oldlink); delete $ls[-1]; my $link = join ("\/", @ls, ""); print $link; |