reversed definition of QUANTITY and IDENTIFIER regex to fix parsing error