title: Python Regex: extract "a" from "01a"
body: <p>I have a bunch of codes with different numbers and with the occasional letter inserted to represent different modifiers of my data. Here is an example code: "01a-09B". What I want to do is:</p>
  
  <ol>
  <li><p>Extract the number ranges from the code above</p></li>
  <li><p>know if the letters "A" or "B" are attached to a number (i.e. [[1,"a"],[9,"b"]]</p></li>
  </ol>
  
  <p>I am attempting to do this using python's Re package. My code follows:</p>
  
  <pre><code>&gt;&gt;&gt;&gt; print re.match(r'\D','01a-09B',re.M)
  None
  </code></pre>
  
  <p>The problem is I can't match non-numeric characters with this code; I am getting <code>None</code> returned.</p>
  
  <p>Thanks everyone.</p>