title: Finding partial matches in an href tag
body: <p>I am trying to use Beautiful Soup to find all <code>&lt;a&gt;</code> elements where the <code>href</code> attribute includes a certain string.</p>
  
  <p>An example of the full element is:</p>
  
  <pre><code>&lt;a href="/markets/NZSX/securities/ABA"&gt;ABA&lt;/a&gt;
  </code></pre>
  
  <p>I am looking for all elements where <code>href</code> includes <code>"/markets/NZSX/securities/"</code>.</p>
  
  <p>I am looking to extract the <strong>text</strong> from this element. This would be <code>ABA</code> in the example.</p>