title: Regular Expressions difference between [0-9] and [0-9.]
body: <p>I just started looking into regular expressions, and was wondering what the difference is between the following:</p>
  
  <pre><code>def test():
      string = "He was 75 in the 1985sdfdhs 45"
      y = re.findall('[0-9]+', string)
      print(y)
  
  test()
  </code></pre>
  
  <p>and this </p>
  
  <pre><code>def test2():
      string = "He was 75 in the 1985sdfdhs 45"
      y = re.findall('[0-9.]+', string)
      print(y)
  
  test2()
  </code></pre>
  
  <p>To my understanding the "." matches any character, so I would have thought the output for test2 would equal ['75', '1985sdfdhs', '45'], instead they are both ['75', '1985', '45'].  Just trying to figure out whats going on here.  Thanks. </p>