title: Regex allow empty string
body: <p>I'm trying to apply a regex in which a number can be formatted to two decimal places, I've been able to achieve this. But I am unable to delete the first character in the string because my test will fail if there is no match. How can I modify this regex to support the deletion of the entire value?</p>
  
  <p><code>/^[0-9]+(\.([0-9]{1,2})?)?$/</code></p>
  
  <p><a href="https://codesandbox.io/s/k2qlq0w68r" rel="nofollow noreferrer">https://codesandbox.io/s/k2qlq0w68r</a></p>