simple string interpolation in javascript

11 March 2008 // javascript. stuff.

two-liner that adds perl/php style string interpolation to javascript

more...

cut-and-paste technique for complex regexps

07 March 2008 // php. stuff.

It's often desired to transform some text ignoring specific parts of it. The "classical" example is to replace something in html, not touching the tags.

more...