Re: [PHP] Quick regular expressions question / preg_replace

2002-01-04 Thread David Yee
TED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, January 04, 2002 6:46 PM Subject: Re: [PHP] Quick regular expressions question / preg_replace > str_replace("\r\n\r\n", '\r\n', $string); > > David Yee wrote: > > > That's an idea but it would delete th

Re: [PHP] Quick regular expressions question / preg_replace

2002-01-04 Thread Bogdan Stancescu
variations but no luck :-(. Argh! > > David > > - Original Message - > From: "Bogdan Stancescu" <[EMAIL PROTECTED]> > To: "David Yee" <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Sent: Friday, January 04, 2002 6:20 PM > Subj

Re: [PHP] Quick regular expressions question / preg_replace

2002-01-04 Thread David Yee
escu" <[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 > s

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\n\r\n", '', $string); ? Bogdan David Yee wrote: > Hi guys. Quick regular expressions question here: > > I want to match: > > > > but not: > > blah blah > > Basically I want to wipe out lines beginning with the tag fo

[PHP] Quick regular expressions question / preg_replace

2002-01-04 Thread David Yee
Hi guys. Quick regular expressions question here: I want to match: but not: blah blah Basically I want to wipe out lines beginning with the tag followed immediately by a carriage return. If I do a: str_replace("\r\n", '', $string); It wipes out and the carriage return after blah blah