in reply to Re: p tag substitution
in thread p tag substitution

How to check if > exists after the  < and then substitute < with </p><p> For example :
<a ahref="http://www.prospect.org/cs/articles?articleId=11945"> # Here < should not be replaced with </p><p>

Replies are listed 'Best First'.
Re^3: p tag substitution
by GrandFather (Saint) on Oct 15, 2009 at 08:46 UTC
    if ($code =~ /=~/ && $data =~ /<p>/) { print "Woe unto you!\n" }

    True laziness is hard work