Closed gabrielferreira95 closed 4 years ago
Thanks, @bfontaine, for the simplification. Regex explanation:
[+-]? # a single character '+' or '-', 0-1 time
\d+ # at least one digit (0-9)
(?:
(?:
\.\d+ # dot and at least one digit \ sth like .34e9
([eE][+-]?\d+)? # possibly sth like: e-21, E+1, e4 /
|[eE][+-]?\d+ # OR sth like 34e10, 12e-3
)
M? # If there is a '.' or ['e', 'E'], 'M' is optional
|M # otherwise, 'M' is mandatory
)
Thank you @gabrielferreira95! :tada:
Fixes issue #67.