why not just run tr -d "\r" htmlfile.htm
----- Original Message ----- From: "Michael Hall" <[EMAIL PROTECTED]> To: "PHP List" <[EMAIL PROTECTED]> Sent: Sunday, June 09, 2002 2:40 AM Subject: [PHP] Removing ^M > > > I am trying remove ^M characters (some kind of newline character) from an > HTML file. I've tried all sorts of ereg_replace and sed possibilities > but the > things just won't go away. Does anyone have a way of removing such > characters? > > TIA > > Mick > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php