Thread Alle HTML-Tags entfernen: REGEX (16 answers)
Opened by steinwolf at 2003-11-14 16:30

[E|B]
 2003-11-14 16:42
#71846 #71846
User since
2003-08-08
2561 Artikel
HausmeisterIn
[Homepage] [default_avatar]
Hi!

Code: (dl )
1
2
3
4
my $string = "<html>Dies ist<b> ein Test</b></html>";
$string =~ s/<.*?>//g;

print $string;
Gruß, Erik!

s))91\&\/\^z->sub{}\(\@new\)=>69\&\/\^z->sub{}\(\@new\)=>124\&\/\^z->sub{}\(\@new\)=>);
$_.=qq~66\&\/\^z->sub{}\(\@new\)=>93~;for(@_=split(/\&\/\^z->sub{}\(\@new\)=>/)){print chr;}

It's not a bug, it's a feature! - [CGI-World.de]

View full thread Alle HTML-Tags entfernen: REGEX