php-general | 2000071
Date: 07/15/00
- Next message: Andrei Zmievski: "Re: [PHP] Where is the modifier "/e" in preg_replace() (Andrei?) ?"
- Previous message: Andrei Zmievski: "Re: [PHP] Where is the modifier "/e" in preg_replace() (Andrei?) ?"
- In reply to: Andrei Zmievski: "Re: [PHP] Where is the modifier "/e" in preg_replace() (Andrei?) ?"
- Next in thread: Andrei Zmievski: "Re: [PHP] Where is the modifier "/e" in preg_replace() (Andrei?) ?"
- Reply: Andrei Zmievski: "Re: [PHP] Where is the modifier "/e" in preg_replace() (Andrei?) ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi,
I apologise, I was about to write to the mailing list what version of PHP
I was using!
I am using php-4.0.1pl2, the latest available.
Merc.
P.S.
You answered in 45 seconds. Yes, I am very impressed :-)
On Sat, 15 Jul 2000, Andrei Zmievski wrote:
> On Sun, 16 Jul 2000, Tony Mobily wrote:
> > I am trying to use the modifier "/e" in the function preg_replace().
> > My code looks like:
> >
> > $variable=preg_replace('/\\{EDIT:(PPP)\\}/e',"my_function('\\1')",$variable);
> >
> > I get the following error:
> >
> > Warning: Unknown option 'e' in library.php on line 169
> >
> > Unfortunately, it isn't just a "warning": the function
> > my_function() doesn't get called at all.
> >
> > In the "NEWS" file, I read:
> >
> > 8 May 2000, Version 4.0 Release Candidate 2
> > [...]
> > - Put in safeguards in case dynamic code evaluation in assert() and
> > preg_replace() with /e modifier fails. (Andrei)
> > [...]
> >
> >
> > ...any idea? If I were able to use that modifier, my life would be *much*
> > easier!
>
> What version of PHP are you using?
>
> -Andrei
> * On the keyboard of life, always keep one finger on the escape key. *
>
-- ---------------------------------------------------------------------- Tony Merc Mobily, technical editor of "Dev." and "Login" Linuxpapers.org coordinator http://www.linuxpapers.org Technical Writer Personal Phone Number: ++61-8-93355105, +8 GMT, +7 from Italy! Currently located in: PERTH, Australia merc <email protected> - mobily <email protected>-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Andrei Zmievski: "Re: [PHP] Where is the modifier "/e" in preg_replace() (Andrei?) ?"
- Previous message: Andrei Zmievski: "Re: [PHP] Where is the modifier "/e" in preg_replace() (Andrei?) ?"
- In reply to: Andrei Zmievski: "Re: [PHP] Where is the modifier "/e" in preg_replace() (Andrei?) ?"
- Next in thread: Andrei Zmievski: "Re: [PHP] Where is the modifier "/e" in preg_replace() (Andrei?) ?"
- Reply: Andrei Zmievski: "Re: [PHP] Where is the modifier "/e" in preg_replace() (Andrei?) ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

