Skip to main content

blueprints

Member since Dec 11, 2008

Recent Blog Comments By blueprints

  • Ask Ben: Javascript String Replace Method

    Posted on Sep 12, 2008 at 1:02 PM

    Ben, C:\Program Files\Internet Explorer\iexplore.exe C:\PROGRA~1\INTERN~1\iexplore.exe C:\123456~8\123456~8\iexplore.exe C:\(leave 6 characters alone)(replace the rest of the characters up to the next backslash with "~1")(then the backslash)(repeat the leave 6 characters alone)(replace the rest of ... read more »

  • Ask Ben: Javascript String Replace Method

    Posted on Sep 12, 2008 at 12:24 AM

    Ben, It occurs to me I should try for a "Short" path while I am at it. Is there a way to use Javascript String Replace Method to get: C:\PROGRA~1\INTERN~1\iexplore.exe rather than the Windows file path or UNC? C:\Program Files\Internet Explorer\iexplore.exe file:///C|/Program Files/Internet Explo... read more »

  • Ask Ben: Javascript String Replace Method

    Posted on Sep 11, 2008 at 11:48 PM

    <html> <head> <title>Path Replace</title> <script type="text/javascript"> <!-- function regexpDemo(monkey,testNum) { switch (testNum) { case 5: monkey.value = monkey.value.replace(/file:\/\/\/C\|/gi,"C:").replace(new RegExp(/\//gi),"\\"); break; case 6: monkey.valu... read more »

  • Ask Ben: Javascript String Replace Method

    Posted on Sep 10, 2008 at 12:25 PM

    Hello Ben, How can one write a javascript string replace which changes these examples: Example 1: C:\WINDOWS\system32\cmd.exe to: file:///C|/WINDOWS/system32/cmd.exe Example 2: file:///C|/WINDOWS/system32/cmd.exe to: C:\WINDOWS\system32\cmd.exe Is it possible to use javascript replace method wit... 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