Answered by:
removing braces how to do it in javascript

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)
Мой блог (русскоязычный)- Proposed as answer by DavidBerryMVP, Moderator Monday, October 18, 2010 8:55 PM
Monday, October 18, 2010 6:08 PMModerator -
Or guid = guid.substr(1,36);
- Proposed as answer by DavidBerryMVP, Moderator Monday, October 18, 2010 8:55 PM
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.comMonday, October 18, 2010 8:55 PMModerator -
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.
Excellent answer Dave!
Dave Berry - MVP Dynamics CRM - http:\\crmentropy.blogspot.comWednesday, April 29, 2015 8:08 AM