I have the following regex to match a number:
^[+-]?[0-9]*\.?[0-9]*(E[+-]?[0-9]*)?$
Shown here: https://regex101.com/r/aAosEj/1. However, this also matches the empty dot, .. Is there a simple way to improve this regex for that, or do I need to handle the case in two ways, one which does num?.num and another which does num.?