Hi, hope some of you Perl folks might be able to help
Problem:
I have a string that contains an expression.
An expression can be: one or more variables, one or more operators, another variable (or number).
So my expression looks like this (for example):
-20.0 * pvs_variable1 + pvs_variable2
Note that I do not know how many operands and operators the expression contains.
I need to be able to extract the operands and the operators of the expression, however many there might be.
How can I do this?
Thanks for your help.
Problem:
I have a string that contains an expression.
An expression can be: one or more variables, one or more operators, another variable (or number).
So my expression looks like this (for example):
-20.0 * pvs_variable1 + pvs_variable2
Note that I do not know how many operands and operators the expression contains.
I need to be able to extract the operands and the operators of the expression, however many there might be.
How can I do this?
Thanks for your help.