Thread regex problem (1 answers)
Opened by Gast at 2008-02-11 19:16

GwenDragon
 2008-02-11 19:45
#105793 #105793
User since
2005-01-17
14748 Artikel
Admin1
[Homepage]
user image
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;

View full thread regex problem