title: Finding all elements of a string vector that end with a given string in R
body: <p>Suppose I have a character vector:</p>
  
  <pre><code>test &lt;- c("a##", "b", "c##", "d", "e")
  </code></pre>
  
  <p>I want to retrieve the indexes of elements ending with "##".</p>
  
  <p>How can I do that?</p>