$htmlData =~ s/<title>(.+?|[^.]*)<\/title>/print "Title found is: $1\n +"/ei;
$htmlData =~ s/<title>(.+?|[^.]*)<\/title>/ print "Title found is: ".clean($1)."\n"/ei; sub clean { my $title = shift; $title =~ s![;'"\/]+!!g; return $title; }
In reply to Re: read HTML <title> tag
by Elijah
in thread read HTML <title> tag
by AngusScrimm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |