nospam0123456us wrote:

> 
> 
>> > "a + MyClass.elements[ 5/b ] + math.sin( 5 ) + ( 45 % 6 & 25 )"  
> 
> Here, the difficult part is that "( 45 % 6 & 25 )" must stay as
> integer ( % & | << >> operators only handle integer ) and also that "[
> 5/b ] must also stay as integer as it is used as an index for a
> vector. 
Good points, thank you.
Anyhow, I was looking for a way to way to do copy-calc-paste of simple math 
expressions involving 
integers, floats and + - * / operators. I think the currents regex can handle 
those.
I might think a little bit more if another regex could also handle % & | << >> 
correctly. A full-blown parser 
is out of question for my needs.

Reply via email to