Thread
:
removing ^M characters?
View Single Post
11-18-2004, 06:08 AM
#
6
(
permalink
)
idx
Senior Grasshopper
Join Date: Jun 2003
Location: FL
Posts: 317
PHP Code:
$str
=
"nice line with crap on the end\r\n"
;
$str
=
preg_replace
(
"/[\r\n]/"
,
""
,
$str
);
Or just "/[\r]/" to remove the CR and no the unix LF.
-r
idx
View Public Profile
Visit idx's homepage!
Find More Posts by idx