title: python how to find exact match of a number in a string
body: <p>How do you match an integer inside a list of strings?</p>
  
  <p>My code looks like:</p>
  
  <pre><code>test_number = 123 # some number 1-399
  lst = ["XXXXXXX-123_xxxxxxx",
         "XXXXXXX-399_xxxxxxx", ...]
  # lst[0] should match, lst[1] should not
  </code></pre>
  
  <p>What I need to do is if the <code>test_number</code> appears in any of the strings in <code>lst</code>, I need to perform an operation on the string.</p>
  
  <p>Do I use <code>re.search</code>? But <code>search</code> compare strings, and my test_number is integer.</p>