Hi guys. Quick regular expressions question here: I want to match:
<html> but not: blah blah <html> Basically I want to wipe out lines beginning with the <html> tag followed immediately by a carriage return. If I do a: str_replace("<html>\r\n", '', $string); It wipes out <html> and the carriage return after blah blah <html>. So I suppose I have to turn to preg_replace, but I'm having a hard time coming up with the right pattern. Thanks. David -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]