title: Python: how to ignore 'substring not found' error
body: <p>Let's say that you have a string array '<code>x</code>', containing very long strings, and you want to search for the following substring: "string.str", within each string in array <code>x</code>.</p>
  
  <p>In the <strong>vast majority</strong> of the elements of <code>x</code>, the substring in question will be in the array element. However, maybe once or twice, it won't be. If it's not, then...</p>
  
  <p>1) is there a way to just ignore the case and then move onto the next element of <code>x</code>, by using an <code>if</code> statement? </p>
  
  <p>2) is there a way to do it without an <code>if</code> statement, in the case where you have many different substrings that you're looking for in any particular element of <code>x</code>, where you might potentially end up writing tons of <code>if</code> statements?</p>