Fix regex for detecting numeric values.

Numbers can have suffixes for denoting value type, e.g. 1L, 1.23f,
1E10d, etc.