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

Linuxer
 2008-02-11 19:31
#105792 #105792
User since
2006-01-27
3875 Artikel
HausmeisterIn

user image
Hi,

z.B. so:

Code (perl): (dl )
1
2
3
4
5
$text = 'www.google.de/foo/bar.html';

$text =~ s![^/]*$!!;

print $text, $/;
meine Beiträge: I.d.R. alle Angaben ohne Gewähr und auf Linux abgestimmt!
Die Sprache heisst Perl, nicht PERL. - Bitte Crossposts als solche kenntlich machen!

View full thread regex problem