Ben Nadel
On User Experience (UX) Design, JavaScript, ColdFusion, Node.js, Life, and Love.
Ben Nadel at Scotch On The Rocks (SOTR) 2011 (Edinburgh) with: Guust Nieuwenhuis and Damien Bruyndonckx and Steven Peeters and Cyril Hanquez
Ben Nadel at Scotch On The Rocks (SOTR) 2011 (Edinburgh) with: Guust Nieuwenhuis@Lagaffe ) , Damien Bruyndonckx ( @damienbkx ) , Steven Peeters@aikisteve ) , and Cyril Hanquez@Fitzchev )

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 »