Skip to main content
Ben Nadel
On User Experience (UX) Design, JavaScript, ColdFusion, Node.js, Life, and Love.

Darren Carter

Member since Sep 14, 2012

Recent Blog Comments By Darren Carter

  • Special $ References In JavaScript's String.replace() Method

    Posted on Sep 14, 2012 at 3:38 PM

    Wow that just made my life a whole lot easier. It makes for a great string highlighter: if(typeof String.prototype.highlight !== 'function') { String.prototype.highlight = function(match, spanClass) { var pattern = new RegExp( match, "gi" ), highlight = "<span class='" ... read more »