title: JQuery: how to write a selector to find elements with a class ending with a given substring?
body: <p>I use JQuery for my web application. I don't know how to write a selector for this situation.</p>
  
  <pre><code>&lt;a class="abc def xyz-delete-confirm efg"&gt;text&lt;/a&gt;
  
  &lt;a class="abc def delete-confirm"&gt;text&lt;/a&gt;
  </code></pre>
  
  <p>I need to find all links that has a class ending with "-delete-confirm" or has a class called "delete-confirm".</p>
  
  <p>I know how to handle the situation of having a class called "delete-confirm". How about the "-delete-confirm situation"? Can I have a single selector covering two situations?</p>
  
  <p>Thanks for any input!</p>
  
  <p>Regards.</p>