title: Regular Expression Formula Parsing in javascript
body: <p>I need to parse this java script formula</p>
  
  <p><strong>Original Formula:</strong></p>
  
  <pre><code>sum((a+b)*c)+count((a*c)+b)+avg((a-c)/b)+sum((a-c+d)/b)
  </code></pre>
  
  <p><strong>expected result:</strong></p>
  
  <pre><code>a = (a+b)*c
  b = (a*c)+b
  c = (a-c)/b
  d = (a-c+d)/b 
  </code></pre>
  
  <p>What ever we tried is in the link below, please check the link.</p>
  
  <p><a href="https://regex101.com/r/upnlkA/2/" rel="nofollow noreferrer">https://regex101.com/r/upnlkA/2/</a></p>
  
  <p>Any Help will be Appreciated, Thanks in Advance.</p>