title: re python - Extract two different parts of a string
body: <p>I'm trying to remove a certain part of a string but currently not getting the correct answer. The string is:</p>
  
  <pre><code>new_text = "'Bob' is currently 'Absent'. Hi, my name is Matt. 'Bob' is currently 'Active'. Bob: Hey Matt"
  </code></pre>
  
  <p>I want the two substrings: <code>'Bob' is currently 'Absent'.</code> and <code>'Bob' is currently 'Active'.</code> to disappear. The name "Bob" may toggle between names with alphabetical and non-alphabetical characters. "Absent" and "Active" are two of the more common statuses displayed, however, I'd like to keep track of any string inside the single quotes.</p>
  
  <p>This is the final sentence I want to return: <code>Hi, my name is Matt. Bob: Hey Matt</code>.</p>
  
  <p>Currently my code is:</p>
  
  <pre><code>re.sub(r"\'([\w\W\d]+)\' is currently \'[\w\W\d]+\'.\s", '', new_text)
  </code></pre>
  
  <p>And it's returning: <code>Bob: Hey Matt</code></p>
  
  <p>Can anyone help with this?</p>