|
Posted by Vince Morgan on 04/30/07 07:07
"Vince Morgan" <vinhar@REMOVEoptusnet.com.au> wrote in message
news:4635758e$0$13365$afc38c87@news.optusnet.com.au...
> "J.O. Aho" <user@example.net> wrote in message
> news:59l9umF2la5s0U1@mid.individual.net...
> > $_POST['email'] = ereg_replace("[\r\n]", "", $_POST['email']);
> I'm not certain, but if I remember correctly with smtp, if it were created
> on win OS it would likey have \r\n as the section deliminator, whereas on
> unix based systems it would be \n.
> Is that correct?
> If so would the following be correct?
> $var = preg_replace("/[\r|r\n]/", "", "email\n and this\n\r or\n");
> TIA
> Vince
>
>
No it wouldn't, "/[\r|r\n]/" should be "/[\r|\n]/" .
[Back to original message]
|