Corrected the regular expression for Num