title: VB6 what is the best way to check the ending characters of different lengths
body: <p>Lets say I have several strings I have to inspect. Here is a list of them:</p>
  
  <pre><code>/gigs-services/online-marketing/
  /gigs-services/;
  /scrapersnbots-files/footer.php';?
  /scrapersnbots-files/ratings.js
  </code></pre>
  
  <p>Lets say the name of the variable that holds each string is <strong><em>strUrls</em></strong>
  I need to filter out strings that end with  <strong><em>;</em></strong>  and  <strong><em>;?</em></strong>  and <strong><em>';?</em></strong></p>
  
  <p>Is there a more efficient way to do so than this one below?</p>
  
  <pre><code>if right(strUrls,1) = ";" or right(strUrls,2) = ;? or right(strUrls,3) = ';?
  </code></pre>