The Elite Noob has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's minimum standard of quality and will not be displayed.

Replies are listed 'Best First'.
Re: Removing all text in a String.
by ww (Archbishop) on Mar 27, 2011 at 01:49 UTC
    It appears that you forgot some of the Monastery's injuntions -- specifically
    Post no more data or code than is required to demonstrate your problem.

    You got a downvote from /me for posting 700+ lines of (mostly) xml and css. In this case, IMO, your "full code" is abusively excessive.

Re: Removing all text in a String.
by wind (Priest) on Mar 26, 2011 at 20:52 UTC

    Sounds to be like you just need

    $html =~ s/.*<div class="heading">Product Description</div>(.*)<table +width=100% border=0 cellpadding=0 cellspacing=0>.*/$1/s;

    Just adjust each .* to be either greedy or not greedy .*? based off your needs.

    Update: Added 's' modifier to make . match new lines per perlre - modifiers.

    A reply falls below the community's threshold of quality. You may see it by logging in.