Re: [PHP] Passing regexp substrings to a function

2004-10-26 Thread Robin Vickery
On Mon, 25 Oct 2004 15:33:59 +0300, Ville Mattila <[EMAIL PROTECTED]> wrote: > Hi there, > > I have a few e-mail templates in a file that should be parsed. A > template can include also some "module codes" that should be replaced by > a return value of a certain function. For example, if the templ

Re: [PHP] Passing regexp substrings to a function

2004-10-25 Thread Octavian Rasnita
want? Maybe you can do something like that using perl regular expressions in PHP... Teddy - Original Message - From: "Ville Mattila" <[EMAIL PROTECTED]> To: "PHP General Mailing List" <[EMAIL PROTECTED]> Sent: Monday, October 25, 2004 2:33 PM Subject: [PHP] Pas

[PHP] Passing regexp substrings to a function

2004-10-25 Thread Ville Mattila
Hi there, I have a few e-mail templates in a file that should be parsed. A template can include also some "module codes" that should be replaced by a return value of a certain function. For example, if the template include a text "{ProductInfo:1032}", the value 1032 would be passed as an argume