07-24-2023, 12:35 AM
I need to remove semicolon from a string in microsoft **JSCRIPT**.
var Test="{abcdef};"
I need to remove the semi colon from the string Test. but it is throwing errror.
I am using the following two ways to remove ";" from string
1) var reg= new RegExp(";", "g")
var Test=Test.replace(reg,"")
2) var Test= Test.replace(/;/g,"");
Any Help appreciated
Thanks
var Test="{abcdef};"
I need to remove the semi colon from the string Test. but it is throwing errror.
I am using the following two ways to remove ";" from string
1) var reg= new RegExp(";", "g")
var Test=Test.replace(reg,"")
2) var Test= Test.replace(/;/g,"");
Any Help appreciated
Thanks