That regex is equivilent to: "/(\r\n)|(\r)|(\n)/", you don't need to use the numeric values.
> -----Original Message----- > From: Jon [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, January 29, 2002 11:22 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Re: Swapping <BR> for \n... ? > > > Nevermind, I found some code at last which actually works : > > $txt = preg_replace("/(\015\012)|(\015)|(\012)/","<BR>",$txt); > > "Jon" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > I'm processing a form but all the functions I've found on the web only > seem > > to add the <BR> after the \n. I need to remove the \n altogether - anyone > > know how I can kill the \n and put a <BR> in it's place? > > > > Cheers, > > Jon > > > > > > > > -- > 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] > > -- 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]