title: Regex Javascript - Invalid regular expression: Nothing to repeat for number input
body: <p>I have this regex pattern <code>/^-?+(\d+)?+([\.\,]?\d?+)/</code>. It has to allow <code>-</code> sign for negative values at the start, also allows zero value and any numbers with one dot or comma only. I tested it on <a href="https://regex101.com/" rel="nofollow noreferrer">https://regex101.com/</a> and it works fine there however when I wanted to use in my React project i get this error and dont exactly know what cause this problem. </p>
  
  <blockquote>
    <p>Module parse failed: Invalid regular expression: /^-?+(\d+)?+([.\,]?\d?+)/: Nothing to repeat (22:26)</p>
  </blockquote>