title: Can I use an attribute selector for CONTAINS in queryselector()?
body: <p>I would like to select an element based on a substring of href attribute.</p>
  
  <p>I posted a question recently where I received an answer based on "starts with":</p>
  
  <pre><code>document.querySelector('#utility-menu a[href^="/email_check?lang="').textContent.trim();
  </code></pre>
  
  <p>But actually, the only constant from page to page will be <code>"lang="</code> within the href attribute. So <code>/email_check?</code> is page specific so I cannot use this variable on al pages.</p>
  
  <p>Is it possible to modify my selector to return the textContent of any <code>&lt;a&gt;</code> element with the substring <code>"lang="</code> within it?</p>