Exercise: Regexes part 2


Write functions that returns true if the given value is a

Write a function that given a string it return true if the string is a number. As there might be several definitions of what is the number create several solutions one for each definition:


examples/regex/which_are_numbers.txt
23
2.3
2.3.4
2.4e3
abc