regex is failing in the expression '9+10-9'