Bobby wrote:
I'm using search and replace to solve this issue unless someone else have a better idea. Thanks.

my $removeText="<script> type="text/javascript">function....</script>";
$string = ~s/$removeText//gi;

    $string =~ s,<script\s+type="text/javascript".+?</script>,,is;

http://perldoc.perl.org/perlrequick.html

http://perldoc.perl.org/perlretut.html

http://perldoc.perl.org/perlre.html

http://perldoc.perl.org/perlop.html#s/PATTERN/REPLACEMENT/msixpogce

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to