p'tal
first steps towards building a ZPT TAL work-alike in PHP have been done tonight. There's still a long way to go, many limitations, and currently it'll only do 'content' and 'replace' methods... but still it's a start, and might even be enough to work with... (won't show code yet, those regex are not for the faint-of-heart)
Ok, maybe just a teaser; this is the core regex doing most of the work
Ok, maybe just a teaser; this is the core regex doing most of the work
"/<((\w+).*)\s+ptal:(\w+)=\"([^\"]+)\">.*<\/\\2>/"