in reply to regex help

Still sorta 1 line (though just keeping as two lines is probably best for clarity), but can just change your:
( ( $result = $htmlline ) =~ s/<tag marker>(.+?)</td>/$1/ ) =~ s/<br>/ +/g;
to this to ditch the "can't substitute in a substitute" error:
( ( $result = $htmlline ) =~ s#<tag marker>(.+?)</td>#$1# ) =~ s/<br>/ +/g && $result =~ s/<br>//g;

Replies are listed 'Best First'.
Re^2: regex help
by GaijinPunch (Pilgrim) on Jun 27, 2005 at 02:11 UTC
    I'm not really opposed to two lines... just always see more complex (and ultimately... not necessarily in this case) better optimzed code. Just thought I'd try to push myself, that's all.

    Thanks for the tips... I will give them a whirl.