Syntax:
string.replace(/abc.+xyz/,"abc"+newString+"xyz");
Input value :
var inputString="(10.00%)(20.00%)(10.00%)Testing Value";
var Output =inputString.replace(/\(.*%\)/ig,"");
Result value :
Testing Value
string.replace(/abc.+xyz/,"abc"+newString+"xyz");
Input value :
var inputString="(10.00%)(20.00%)(10.00%)Testing Value";
var Output =inputString.replace(/\(.*%\)/ig,"");
Result value :
Testing Value
No comments:
Post a Comment