Skip to main content

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='&qu... read more »

I believe in love. I believe in compassion. I believe in human rights. I believe that we can afford to give more of these gifts to the world around us because it costs us nothing to be decent and kind and understanding. And, I want you to know that when you land on this site, you are accepted for who you are, no matter how you identify, what truths you live, or whatever kind of goofy shit makes you feel alive! Rock on with your bad self!
Ben Nadel