I'm trying to fix two regular expressions to work with the new break
tags.

This

$breaks=preg_match_all("/<br>\s+<br>/i", "$text", $parts)

and this

preg_replace("/<br>\s+<br>/i","</P><P class=\"doserif\">",$text)


Now that PHP 4.0.5 has changed the nl2br() function, it no longer
replaces new lines with:

<br>

but instead with the new XHTML compliant break tags:

<br />

I tried just substituting the new tag into the above regular expressions
to no avail.  Any ideas?

kind regards,

bill hollett


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to