title: How to make Regexs only match on exact-matches?
body: <p>Ok, so basically I have some bit of code that matches URLs by regexs. It then will call some function based on which regex the URL matches against. I never want for more than one function to be called for a URL and I want the regex matches to have to be "exact" </p>
  
  <p>For instance, with the simple URL <code>/</code> I use a simple regex <code>/</code> which will match <code>/</code> but it will also match things like <code>/foo</code> and <code>/foo/bar</code>. </p>
  
  <p>How can I prevent this partial matching behavior in C#/.Net?</p>