Re: [SMARTY-DEV] Regex bug?

From: Date: Wed, 07 May 2003 01:43:08 +0000
Subject: Re: [SMARTY-DEV] Regex bug?
References: 1  Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-1396@lists.php.net to get a copy of this message
It's not a bug. You can never nest delimiters within delimiters in the Smarty language. The left delimiter works only because the parser is looking for a right delimiter at that moment, this wasn't intentional. Don't bury delimiters within delimiters or the regex engine will come to haunt you. ;-) Maybe if Smarty had a better parser one day, but for now it is based on regex. Monte boots wrote:
Hi all. Sorry about the double post before--bad boots! I'm writing because I think I found a bug in the regex parser that I haven't been able to fix. I posted a note at the user forum: http://www.phpinsider.com/smarty-forum/viewtopic.php?t=188 but lest some of you who may be able to help aren't using the forum or haven't seen the post, here is the short summary: A right delim ( } ) within quotes does not get ignored though the left delim does. Follow the link for positive and negative examples. __________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. http://search.yahoo.com


« previous php.smarty.dev (#1396) next »