RE: [PHP] Problem with a regex!

2001-01-29 Thread Zack Ham
impossible to escape or php just doesnt like me... --- CC Zona [EMAIL PROTECTED] wrote: In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Zack Ham) wrote: What I'm trying to do is run through it and replace {title} with an appropriate value. I have tried r

[PHP] Problem with a regex!

2001-01-27 Thread Zack Ham
I'm trying to create a small template parser so I can fill my html pages up with data. An example: htmlheadtitle{title}/title/head/html What I'm trying to do is run through it and replace {title} with an appropriate value. I have tried running ereg_replace("{$var}",$value,$string) and

Re: [PHP] Problem with a regex!

2001-01-27 Thread Zack Ham
? Hope this helps, Julian on 1/27/01 6:17 PM, Zack Ham at [EMAIL PROTECTED] wrote: I'm trying to create a small template parser so I can fill my html pages up with data. An example: htmlheadtitle{title}/title/head/html What I'm trying to do is run through it and replace {title} w

Re: [PHP] Problem with a regex!

2001-01-27 Thread Zack Ham
wrote: In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Zack Ham) wrote: What I'm trying to do is run through it and replace {title} with an appropriate value. I have tried running ereg_replace("{$var}",$value,$string) and ereg_replace("\{$var\}",$value,$string).