title: Regex for both double precision value or empty string: ^[0-9]\d*(\.\d+)?$
body: <p>For validation if a text is a double precision value, I use <code>^[0-9]\d*(\.\d+)?$</code>. However, what regex should I use so that either an empty string or a double precision value would match?</p>