title: Regex to match scientific notation of numbers but not other letters
body: <p>I want to write a regex to match all positive double numbers with maximum 2 digits after decimal point.</p>
  
  <p>My first approach was this:</p>
  
  <pre><code>^\\d+(?:\\.\\d{1,2})?$
  </code></pre>
  
  <p>it works fine for most cases but not for scientific notations, for example <code>10000000</code> when it's written as <code>1.0E7</code>.</p>
  
  <p>I've found an answer <a href="https://stackoverflow.com/questions/41668588/regex-to-match-scientific-notation">here</a> and I made adapted it to my case resulting:</p>
  
  <pre><code>[\\s=]+([+]?(?:0|[1-9]\\d*)(?:\\.\\d*)?(?:[eE][+\\-]?\\d{1,2}))$
  </code></pre>
  
  <p>but now it returns false for a lot of "good" values.</p>
  
  <p>Any idea how to make it match only positive numerical values with 0 to 2 digits after the decimal point but also the scientific notation of the numbers?</p>