Ben Nadel
On User Experience (UX) Design, JavaScript, ColdFusion, Node.js, Life, and Love.
Ben Nadel at CFUNITED 2009 (Lansdowne, VA) with: Matthew Abbott and Andrew Abbott and Chuck Leverette
Ben Nadel at CFUNITED 2009 (Lansdowne, VA) with: Matthew Abbott@abbottmw ) , Andrew Abbott , and Chuck Leverette

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 »