I want to replace start from @ to º with 0
below is my string
I try its working only for 2 pair but not working for 3 etc pair
Example 01:
Input Data
@8~Cº + @9~Cº
Output
0 + 0
Example 02:
Input Data
@11~Cº + @12~P1º - @13~Fº
Output
0+0+0
Below is my code
var tempRes = "@11~Cº + @12~P1º - @13~Fº";
tempRes = tempRes.replace(/@[0-9]~[A-Z]º/i,parseFloat(0));