Skip to main content

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 »

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