title: How to find string with regex.compile and ignore everything what goes after that string
body: <p>I am practicing regex and right now I have made this sample : </p>
  
  <pre><code>import re
  test_obj_A = 'some_testObj_Asomething'
  pattern = re.compile(r'_A')
  subbed = pattern.sub(r'_B', test_obj_A)
  print(subbed)
  </code></pre>
  
  <p>My question is how to ignore in compile everything what goes after <em>'_A'</em> and get result in <strong>subbed</strong> - 'test_obj_B'.</p>