Regex sum ( itemOne * itemTwo + itemTwoX - itemThree ..... )
Posted on 2005-04-26
I need to extract these items : itemOne,itemTwo, etc. Basically, every word between the parenthesis. There may be spaces before/after ( ) and the seperators might be [+/*-] .
I have tried this, but the parenthesis seem to be messing up the expression (combined with my newbieness on regex I'm sure) .
FYI: This is going into a web page. The itemOne,itemTwo,etc are elements that I need to put onchange events into so that if any element in the expression changes, the calculation is done automatically. I wouldn't know the fields during the design of the page.
Thanks Experts !