On 6 aug, 10:53, Egbert Teeselink <skreb...@gmail .comwrote:
I got this:
Parse error: syntax error, unexpected T_VARIABLE, expecting T_STRING
in /home/sjoerd/www/mplate/mplate-0.2.1/Mplate/Taglib/Zend.php on line
47
And this:
Warning: preg_match() [function.preg-match]: Compilation failed:
unrecognized character after (? at offset 201 in /home/sjoerd/www/
mplate/mplate-0.2.1/Mplate/Compiler.php on line 437
For this regex:
~^(?P<t>.*?) (?:(?!\{ /? (?:if|else|fore ach|foreachelse |ld|rd|lde|rde|
capture|strip|i nclude|inline|r aw|wrap|expandT aglib|assign|re peat|c:\w+|
p:\w+|zend:\w+) ) \{ (?P<e>[^()]*? (?P<rr2\( (?>[^()]+ | (?&rr2) )*?
\) )? [^()]*? /?) \}|\{ (?P<f>/? (?:if|else|fore ach|foreachelse |ld|rd|
lde|rde|capture |strip|include| inline|raw|wrap |expandTaglib|a ssign|
repeat|c:\w+|p: \w+|zend:\w+)[^()]*? (?P<rr1\( (?>[^()]+ | (?
&rr1) )*? \) )? [^()]*? /?) \}) (?P<p>.?) ~isx
"mplate, a PHP template engine that Doesn't Suck(tm)" (or at least,
that's what I hope)
that's what I hope)
Parse error: syntax error, unexpected T_VARIABLE, expecting T_STRING
in /home/sjoerd/www/mplate/mplate-0.2.1/Mplate/Taglib/Zend.php on line
47
And this:
Warning: preg_match() [function.preg-match]: Compilation failed:
unrecognized character after (? at offset 201 in /home/sjoerd/www/
mplate/mplate-0.2.1/Mplate/Compiler.php on line 437
For this regex:
~^(?P<t>.*?) (?:(?!\{ /? (?:if|else|fore ach|foreachelse |ld|rd|lde|rde|
capture|strip|i nclude|inline|r aw|wrap|expandT aglib|assign|re peat|c:\w+|
p:\w+|zend:\w+) ) \{ (?P<e>[^()]*? (?P<rr2\( (?>[^()]+ | (?&rr2) )*?
\) )? [^()]*? /?) \}|\{ (?P<f>/? (?:if|else|fore ach|foreachelse |ld|rd|
lde|rde|capture |strip|include| inline|raw|wrap |expandTaglib|a ssign|
repeat|c:\w+|p: \w+|zend:\w+)[^()]*? (?P<rr1\( (?>[^()]+ | (?
&rr1) )*? \) )? [^()]*? /?) \}) (?P<p>.?) ~isx
Comment