I have large string with repeated some small string in JavaScript. I want to remove only that particular string but symbols should not remove or changed.
The large string is -
var temp="day=1-CT=18-box=calender1_day=2-CT=19-CT=20-box=calender2_day=3-CT=30-box=calender3";
IN above string three sub string is joined with underscore(_). so I want to remove 'box=calender(n)' from each from these three sub string. Please help. Thanks in Advanced.