title: get index of a specific string along with the string in vb.net?
body: <pre><code>Dim str() as string = "1,2,1,2"
  </code></pre>
  
  <p>From the above string array i want to know the repeating string's index like "1" is at index of 0,2 and "2" at 1,3. How to do this in  vb.net? </p>
  
  <p>Please keep in mind that i will get the string array from database. so i dont which numbers are present more than 2 times.</p>