View Single Post
  #8  
Old 09-13-2006, 12:37 PM
lance lance is offline
OSP Starters
 
Join Date: Apr 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
lance is on a distinguished road
Default

Quote:
Originally Posted by design View Post
the problem is matching the data between the p tags, the regexes above won't match it, unless its on the same line.

for instance:
Code:
<p>
test
</p>

would not pass the regex, because it contains \r\n's
Actually it will match. try the following example:
PHP Code:
<?php
$txt=<<<FILECONTENTS
<p>
-- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
  Webmaster Forums - View Single Post - \r\n inside <p></p> tags. Removel ?
View Single Post
  #8  
Old 09-13-2006, 12:37 PM
lance lance is offline
OSP Starters
 
Join Date: Apr 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
lance is on a distinguished road
Default

Quote:
Originally Posted by design View Post
the problem is matching the data between the p tags, the regexes above won't match it, unless its on the same line.

for instance:
Code:
<p>
test
</p>

would not pass the regex, because it contains \r\n's
Actually it will match. try the following example:
PHP Code:
<?php
$txt=<<<FILECONTENTS
<p>
-- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote