Jul 5, 2002 #1 vpalag Programmer Apr 28, 2002 11 IN Hi, My $body has some tags in the following fashion <p> </p> I am not able to clean them up by using $body =~ s|<p> </p>||g; Please help me if some one knows why it is not working. Appreciate quick reply. Pala
Hi, My $body has some tags in the following fashion <p> </p> I am not able to clean them up by using $body =~ s|<p> </p>||g; Please help me if some one knows why it is not working. Appreciate quick reply. Pala
Jul 5, 2002 Thread starter #2 vpalag Programmer Apr 28, 2002 11 IN Actally I had in the $body....I could not see it in my posting. $body = 'blah blah <H1>SOME THING</H1> <p>ampnbsp</p>'; Please read amp as &. Thanks, Venu Upvote 0 Downvote
Actally I had in the $body....I could not see it in my posting. $body = 'blah blah <H1>SOME THING</H1> <p>ampnbsp</p>'; Please read amp as &. Thanks, Venu
Jul 5, 2002 #3 Krel Programmer Feb 3, 2002 135 CA You can use & to show a literal ampersand. That said, I don't know what the problem is... The following should work... Code: $body =~ s!<p>&nbsp</p>!!ig; Upvote 0 Downvote
You can use & to show a literal ampersand. That said, I don't know what the problem is... The following should work... Code: $body =~ s!<p>&nbsp</p>!!ig;
Jul 5, 2002 Thread starter #4 vpalag Programmer Apr 28, 2002 11 IN Thanks Krel, It's working. My mistake was I had a $body =~ s|</p>|<br>|g before this - Venu Upvote 0 Downvote