#~ raise "It is not a standard Polish formula" unless ori[/^(\d+|PI|E)\s+(\d+|PI|E)\s*[\+\-\*\/](\s*(\d+|PI|E)\s*[\+\-\*\/])*$/]
raise "It is not a standard Polish formula" unless ori[/(^(\d+|PI|E)\s+(\d+|PI|E)\s*[\+\-\*\/](\s*(\d+|PI|E)\s*[\+\-\*\/])*$|(^(\d+|PI|E)\s+(\d+|PI|E)\s*[\+\-\*\/](\s*(\d+|PI|E)\s*[\+\-\*\/])*$){2}[\+\-\*\/])/]