Re: [PHP] ereg + performance problem

2004-01-02 Thread Mirek Novak
Hi, I think that smarty [ http://smarty.php.net ] can do this for u. It has tag nesting and, of course, you can define your own tag as a plugin. As for performance problem - this is known feature of regexp. Solution is not simple. You, IMHO, have to rethink your approach. For parsing larger

Re: [PHP] ereg + performance problem

2004-01-02 Thread Martin Helie
Hi Mirek, thanks for pointing this out. This looks like a great site -- although, as you say, will require some [longer term] study. I'll have closer look at Smarty as well... Mirek Novak [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I think that smarty [

[PHP] ereg + performance problem

2004-01-01 Thread Martin Helie
Hello, I'm writing a routine that recursively reads an HTML document, looking for special tags. It's a template system, but contrary to what I've seen out there so far, no template engines allow for any kind of customization from within the document; they only seem to be variable replacement