Re: [PHP] newline and pregreplace

2005-07-01 Thread Dotan Cohen
On 7/2/05, Richard Lynch <[EMAIL PROTECTED]> wrote: > On Fri, July 1, 2005 3:35 am, Dotan Cohen said: > > By the way, I see that you advertise offices on all the planets and > > most of the major moons, but when I try to get in contact with the > > Uranus branch, I'm told that the nearest operating

Re: [PHP] newline and pregreplace

2005-07-01 Thread Richard Lynch
On Fri, July 1, 2005 3:35 am, Dotan Cohen said: > By the way, I see that you advertise offices on all the planets and > most of the major moons, but when I try to get in contact with the > Uranus branch, I'm told that the nearest operating office is on Earth. > There's 3 planets and over 20 big moo

Re: [PHP] newline and pregreplace

2005-07-01 Thread Richard Lynch
On Fri, July 1, 2005 3:35 am, Dotan Cohen said: > By the way, I see that you advertise offices on all the planets and > most of the major moons, but when I try to get in contact with the > Uranus branch, I'm told that the nearest operating office is on Earth. > There's 3 planets and over 20 big moo

Re: [PHP] newline and pregreplace

2005-07-01 Thread Dotan Cohen
On 7/1/05, Richard Lynch <[EMAIL PROTECTED]> wrote: > On Fri, June 24, 2005 3:18 pm, Dotan Cohen said: > > I've got a line like this: > > $str=preg_replace( "-regex here-", '\n\1', $str); > > > > Which has one of two problems: If I leave the single quotes around the > > second argument, then it ret

Re: [PHP] newline and pregreplace

2005-06-30 Thread Richard Lynch
On Fri, June 24, 2005 3:18 pm, Dotan Cohen said: > I've got a line like this: > $str=preg_replace( "-regex here-", '\n\1', $str); > > Which has one of two problems: If I leave the single quotes around the > second argument, then it returns as \n and not a newline. If I change > the single quotes to