[PHP] Re: Reg Ex for replacing or with \n

2002-12-27 Thread Tom Beddard
Yes, i thought it was simple, just wasn't escaping a forward slash $string = preg_replace( "/(|)/i" , "\n",$string); "Tom Beddard" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I'm new to using

[PHP] Reg Ex for replacing or with \n

2002-12-27 Thread Tom Beddard
I'm new to using regular expressions so i'm struggling a bit in making an expression to replace or with \n $string = preg_replace( "/(|)/i" , "\n",$string); which needless to say doesn't work. I'm sure its obvious, just need a bit of a pointer! Cheers Tom -- PHP General Mailing List (http: