locked
removing braces how to do it in javascript RRS feed

  • Question

  • I am guid  as

    {afkffd-232323-frfede-frsd-23232}

    I need to replace this with

    afkffd-232323-frfede-frsd-23232 removing braces how to do it in javascript

    Monday, October 18, 2010 5:57 PM

Answers

  • Thanks everyone for the answers got it to work.
    • Marked as answer by CRMAG Wednesday, October 20, 2010 12:51 PM
    Wednesday, October 20, 2010 12:50 PM

All replies

  • Hi.

     

    Try to use following code:

    var guid = '{afkffd-232323-frfede-frsd-23232}';

    guid = guid.replace('{', '').replace('}', '');


    Microsoft CRM Freelancer

    My blog (english)
    Мой блог (русскоязычный)
    Monday, October 18, 2010 6:08 PM
    Moderator
  • Or guid = guid.substr(1,36);
    Monday, October 18, 2010 8:47 PM
  • I asked my orthodontist, and he said that Javascript is not recommended to remove braces.  Something about high fatality rates.  So there's that.

    Dave Berry - MVP Dynamics CRM - http:\\crmentropy.blogspot.com
    Monday, October 18, 2010 8:55 PM
    Moderator
  • Thanks everyone for the answers got it to work.
    • Marked as answer by CRMAG Wednesday, October 20, 2010 12:51 PM
    Wednesday, October 20, 2010 12:50 PM
  • I asked my orthodontist, and he said that Javascript is not recommended to remove braces.  Something about high fatality rates.  So there's that.

    Dave Berry - MVP Dynamics CRM - http:\\crmentropy.blogspot.com
    Excellent answer Dave!
    Wednesday, April 29, 2015 8:08 AM