Re: [PHP] Quick regular expressions question / preg_replace

2002-01-04 Thread Bogdan Stancescu
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

Re: [PHP] Quick regular expressions question / preg_replace

2002-01-04 Thread 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\nhtml\r\n, '', $string); ? Bogdan David Yee wrote: Hi guys. Quick

Re: [PHP] Quick regular expressions question / preg_replace

2002-01-04 Thread Bogdan Stancescu
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

Re: [PHP] Quick regular expressions question / preg_replace

2002-01-04 Thread David Yee
, 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