Give me regular expressions!
Someone posted recently asking about regular expressions and this is another time when they would be handy!
I've done a calculation bean in Java (also no native support for Regular expressions) and it was quite lengthy.
But I had to support an extensible list of functions as well as the normal logical and mathematical operators so your case should be alot more straight forward...
HAving said that, I'm glad it's you and not me :)
As a test though, if you respond to Sam's request for the rules for reverse Polish, then maybe a few of us could write something as a sort of mini-contest ;)
That ought to put the cat amongst the pigeons!
Cheers
Paul Lewis
Ok in Pick, which reverse polishes like a weasel
1 + 2
would be written as.......
C;2;1;+
Is that any help??????????