Ben Nadel
On User Experience (UX) Design, JavaScript, ColdFusion, Node.js, Life, and Love.
Ben Nadel at the jQuery Conference 2010 (Boston, MA) with: Doug Neiner
Ben Nadel at the jQuery Conference 2010 (Boston, MA) with: Doug Neiner@dougneiner )

Zigo

Member since Oct 7, 2009

Recent Blog Comments By Zigo

  • Ask Ben: Javascript String Replace Method

    Posted on Oct 7, 2009 at 5:49 AM

    Hi, I tried using regular expression and trying to pass a variable for the replace string var rep = 'x'; mystring = mystring.replace(/rep/gi,'y'); How do I tell the replace function that rep is actually a variable and it should use its value... read more »