Forum Moderators: coopster
<P>
adsfasdfasdfasdfasdffsd
asdfasdf
dsafsdfasdfasdfasdfasdf
asdfasdfasdf
</P>
asdfasdf
fasfdasd
aasdfasdf I am trying to eliminate the carriage returns between the P tags (only). I have tried just about everything I can think of and am at a loss. Everything I do try does nothing to the text at all.. Any pointers?
$beginParagraph = "^<[Pp]>^"; //control for part 2 ereg($beginParagraph, $str);
$endParagraph = "^</[Pp]>^"; //control for part 4
I think the logic is accurate, the regular expressions though......I know it won't work if you have it like this:
<p> some text here
ahaha
haha
</p> shahsfs
but if the paragragraph tags are on seperate lines that should do it...Note: I'm not mr regex so if it doesn't work play around with it.
--Nick