Escaping the curly braces
| From: | David Pavlotzky | Date: | Fri, 09 Aug 2002 14:33:10 +0000 |
| Subject: | Escaping the curly braces | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-5625@lists.php.net to get a copy of this message | ||
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