Re: [PHP] Re: help using ereg_replace()

2002-01-14 Thread Erik Price

liljim,

Thanks for the advice (and especially the explanation!) -- I note that 
you chose the Perl regexp engine rather than the e regexp engine 
(POSIX?).  Quite a few people recommended O'Reilly's Mastering Regular 
Expressions over the weekend.  Does anyone know if it covers the Perl 
syntax*?  This seems like a good book to learn more.

Erik
* I don't know Perl


On Monday, January 14, 2002, at 11:11  AM, liljim wrote:

 I would use preg_replace to do this.


-- 
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]




Re: [PHP] Re: help using ereg_replace()

2002-01-14 Thread liljim

Hi Erik,

 Thanks for the advice (and especially the explanation!) -- I note that
 you chose the Perl regexp engine rather than the e regexp engine
 (POSIX?).  Quite a few people recommended O'Reilly's Mastering Regular
 Expressions over the weekend.  Does anyone know if it covers the Perl
 syntax*?  This seems like a good book to learn more.

The book (though going into examples using perl mainly) gives you a general
grounding in regular expressions - I learned php before perl, and
javascript, though the book has equipped me equally well for all three.  I
love it, and would recommend it for anyyone who's even vaguely interested in
regexes.

James


-- 
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]




RE: [PHP] Re: help using ereg_replace()

2002-01-14 Thread Bart Brinkmann

I own and have read Mastering Regular Expressions (excellent book). I've
programmed perl for 3 years and have recently started migrating one of my
projects into php. I can't stand ereg, I prefer preg. While functions such
as substitute and match differ in syntax from perl to php, this book will
teach you quite a bit about how to effectively use preg, which i've found to
be easier, and faster than ereg.

For the record, I like perl's syntax better...   ;p

Hope this helps,

/bart

-Original Message-
From: Erik Price [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 14, 2002 11:26 AM
To: liljim
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Re: help using ereg_replace()


liljim,

Thanks for the advice (and especially the explanation!) -- I note that
you chose the Perl regexp engine rather than the e regexp engine
(POSIX?).  Quite a few people recommended O'Reilly's Mastering Regular
Expressions over the weekend.  Does anyone know if it covers the Perl
syntax*?  This seems like a good book to learn more.

Erik
* I don't know Perl


On Monday, January 14, 2002, at 11:11  AM, liljim wrote:

 I would use preg_replace to do this.


--
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]



-- 
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]