Ex.1
var strString= 3942_3902_0;
Replace Last 0 To -0.
Ex.2
var strString1= 942_3902_0_234_3_444_0
Replace Middle and Last 0 bold style
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Manas MohapatraRank #182 · 13.2K reputationPosted Aug 21, 2015, 10:26 AM EDT
Posted Aug 21, 2015, 10:17 PM EDT
Hussain PatelRank #1,053 · 1.8K reputationPosted Oct 3, 2016, 9:42 PM EDT
Clickthebuttontoreplace
"942_3902_0_234_3_444_0"with"942_3902_-0_234_3_444_-0"inthelineelinebelow:Ifour Hiren61 reputationPosted Nov 2, 2016, 10:15 PM EDT
var str="942_3902_0_234_3_444_0";
var a=str.replace("_0","_-0");
alert(a);
}
above code helps you to make it working.