I suck big time at regular expressions, but have you tried
str_replace(\r\nhtml\r\n, '', $string); ?
Bogdan
David Yee wrote:
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
[EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, January 04, 2002 6:20 PM
Subject: Re: [PHP] Quick regular expressions question / preg_replace
I suck big time at regular expressions, but have you tried
str_replace(\r\nhtml\r\n, '', $string); ?
Bogdan
David Yee wrote:
Hi guys. Quick
Message -
From: Bogdan Stancescu [EMAIL PROTECTED]
To: David Yee [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, January 04, 2002 6:20 PM
Subject: Re: [PHP] Quick regular expressions question / preg_replace
I suck big time at regular expressions, but have you tried
str_replace(\r
, January 04, 2002 6:46 PM
Subject: Re: [PHP] Quick regular expressions question / preg_replace
str_replace(\r\nhtml\r\n, '\r\n', $string);
David Yee wrote:
That's an idea but it would delete the carriage return before it which I
don't want to happen. I've tried preg_replace(/^html\r\n
4 matches
Mail list logo