RusselB

Yes the letters (x,y,x) are %variables. All are numeric values and will show One numeric result.

For example, the value expected for a pilot who won 100 Level1, 200 Level2, 300 Level3 races and so on; with an Skill Level of A (or B,C,D), all of it multiplied by a phrase (1-3 words) which will have its own variable value %calc.ThatPhrase like this:

!calc 100 200 300 0 0 0 0 A Land Cruiser
Result: ((100* %calc.r1 + 200* %calc.r2 + 300* %calc.r3 + 0* %calc.r4 + 0* %calc.r5 + 0* %calc.r6 + 0* %calc.r7 ) * %calc.A) * %calc.multiplier.LandCruiser

so ...
!calc 100 200 300 A Land Cruiser
should show the same result

I will try now the regex suggestion from qwerty, but I'm not familiar with that yet so it will take me a while.

Thanks for the help so far