title: C# find exact-match in string
body: <p>How can I search for an exact match in a string? For example, If I had a string with this text:</p>
  
  <p>label<br>
  label:<br>
  labels  </p>
  
  <p>And I search for label, I only want to get the first match, not the other two. I tried the Contains and IndexOf method, but they also give me the 2nd and 3rd matches.</p>