number_feature.test 652 Bytes
0
42
1 2 3 4 5
4.
4 .
.5
. 5
3.14159
3 . 14 15 9
3E8
3 E 8
2.0e-7
2 . 0 e - 7
.28e+12
. 2 8 e + 1 2

----------------------------------------------------

[
	["number", "0"],
	["number", "42"],
	["number", "1 2 3 4 5"],
	["number", "4."],
	["number", "4 ."],
	["number", ".5"],
	["number", ". 5"],
	["number", "3.14159"],
	["number", "3 . 14 15 9"],
	["number", "3E8"],
	["number", "3 E 8"],
	["number", "2.0e-7"],
	["number", "2 . 0 e - 7"],
	["number", ".28e+12"],
	["number", ". 2 8 e + 1 2"]
]

----------------------------------------------------

Checks for numbers. Also checks that whitespaces are ignored.