Added bit of regex to the value checking line

In Java a number can be a normal format number e.g. 1234.56 but it can also have a lower-case f at the end for a floating point number : 1234.56f or a lower-case l at the end :123456l  for a long integer number.