Skip to main content

nikolaus

Member since Dec 11, 2008

Recent Blog Comments By nikolaus

  • Ask Ben: Javascript String Replace Method

    Posted on Sep 10, 2008 at 1:00 PM

    To blueprints: Here are your javascript expressions to convert a Windows file path to a UNC path and back: Example 1: Var inputstring = ... (do that yourself)(grab string from the input node via the usual dom access methods - use a js toolkit if you find it hard to get it to run on all browsers) ... read more »

  • Ask Ben: Javascript String Replace Method

    Posted on Nov 25, 2007 at 9:57 AM

    Hi Ben, the String.prototype.replaceAll variant is definitely the most elegant. I have just one litte improvement in mind: it runs into an endless look when given identical parameters (can occur when used dynamically on data). i.e. a little <code>if(strTarget == strSubString) return;<... 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