Re: preg_replace ^M
| From: | CPT John W. Holmes | Date: | Thu, 06 Nov 2003 14:17:00 +0000 |
| Subject: | Re: preg_replace ^M | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-168721@lists.php.net to get a copy of this message | ||
From: "Torsten Rosenberger" <rosenberger@taoweb.at>
> > Those are \r characters from dos newline (\r\n). Generally they are not
> > harmful and many editors can work with them without problems (vim). You
> > can use some utility commands to convert to or from dos or unix
newlines.
>
> But i'm working under Linux.
Doesn't matter...
> I made a test with HTML Template IT and addBlockfile
> and thats the same.
So that program is writing \r\n as the newline instead of just \n. It's
still just your editor that's displaying the ^M. Maybe you should get a new
editor.
---John Holmes...