Re: [PHPTAL] Escaping of dollar sign ($)

2009-11-04 Thread Kornel Lesiński
On 03-11-2009 at 17:56:02 Tobias Herp bruno-the-questiona...@gmx.net wrote: Kornel Lesiński wrote: I could change it to: ${x} → value $${x} → ${x} $$${x} → $value {x} → $${x} ${x} → $$value $${x} → $$${x} etc. Yes, please! This is logical, and it is the behaviour defined by

Re: [PHPTAL] Escaping of dollar sign ($)

2009-11-04 Thread Kornel Lesiński
On 04-11-2009 at 10:22:56 Tjerk Meesters tjerk.meest...@gmail.com wrote: Would it be possible to use a preg_replace() with two expressions, one to replace $$ by $ and one to handle \b${?(\w+) You'd have to use assertions or other tricks, to avoid replacing unrelated $$s. I think I'll just