title: Python Regex to Extract Word From Multiline String
body: <p>How would I extract the serial number from the following python string:</p>
  
  <pre><code>blah:              asdf
  blah:              asdf
  Serial Number:     1234ABCD
  blah               asdf
  blah               asdf
  </code></pre>
  
  <p>I have tried the following, but it doesn't appear to be working:</p>
  
  <pre><code>serial_num = re.search("^Serial Number:\s*(\w*)$", serial_num, re.MULTILINE)
  </code></pre>