[PHP] Re: help using ereg_replace()

2002-01-14 Thread liljim
Hello Erik, Hello everyone, I am trying to learn how to use ereg_replace(), but I don't seem to be doing it correctly. $phone is a 10-digit string. I want to perform the following: $phone = ereg_replace(.{10}, [part where I am confused], $phone); I would like the output to be

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

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

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

2002-01-14 Thread Bart Brinkmann
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