RE: [SMARTY] Escaping the curly braces
| From: | Sean Chambers | Date: | Fri, 09 Aug 2002 14:57:58 +0000 |
| Subject: | RE: [SMARTY] Escaping the curly braces | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-5626@lists.php.net to get a copy of this message | ||
Use the following:
{literal}
{/literal}
All curly braces within those tags will be ignored
-----Original Message-----
From: David Pavlotzky [mailto:david@djin.com]
Sent: Friday, August 09, 2002 10:33 AM
To: smarty-general@lists.php.net
Subject: [SMARTY] Escaping the curly braces
Hi,
Is there some way to escape the curly braces
{' }' ? I'm trying to use
regex_replace in my template but, not surprisingly, smarty barfs on the
curly
braces that I need in my regexp. It's a regexp to verify dutch postal
codes
and it looks like this:
/^\d{4}([a-z]|[A-Z]){2}$/
thanx for helping me out.
David
--
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php