in reply to Removing all text in a String.

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.

Replies are listed 'Best First'.
Re^2: Removing all text in a String.
by moritz (Cardinal) on Mar 26, 2011 at 21:03 UTC
A reply falls below the community's threshold of quality. You may see it by logging in.