title: Splitting a filename into words and numbers in Python
body: <p>The following code splits a string into a list of words but does not include numbers:</p>
  
  <pre><code>    txt="there_once was,a-monkey.called phillip?09.txt"
      sep=re.compile(r"[\s\.,-_\?]+")
      sep.split(txt)
  
  ['there', 'once', 'was', 'a', 'monkey', 'called', 'phillip', 'txt']
  </code></pre>
  
  <p>This code gives me words and numbers but still includes "_" as a valid character:</p>
  
  <pre><code>re.findall(r"\w+|\d+",txt)
  ['there_once', 'was', 'a', 'monkey', 'called', 'phillip', '09', 'txt']
  </code></pre>
  
  <p>What do I need to alter in either piece of code to end up with the desired result of:</p>
  
  <pre><code>['there', 'once', 'was', 'a', 'monkey', 'called', 'phillip', '09', 'txt']
  </code></pre>