I need to parse this java script formula
Original Formula:
sum((a+b)*c)+count((a*c)+b)+avg((a-c)/b)+sum((a-c+d)/b)
expected result:
a = (a+b)*c
b = (a*c)+b
c = (a-c)/b
d = (a-c+d)/b
What ever we tried is in the link below, please check the link.
https://regex101.com/r/upnlkA/2/
Any Help will be Appreciated, Thanks in Advance.