Zigo
Member since Oct 7, 2009
- Profile: /members/4470-zigo.htm
- Comments: 1
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 »