title: Exact string match with javascript regex
body: <p>I'm struggling with what is probably a very simple regex problem. I'm working on a simple prototype and need to know what page I'm on, so I don't reload it if the user clicks a menu widget to navigate to the same view.</p>
  
  <p>I have two URLs the user can switch between:</p>
  
  <p><code>http://localhost/TestMVC/Larry/LarryTiles</code></p>
  
  <p><code>http://localhost/TestMVC/Larry/LarryTilesList</code></p>
  
  <p>The URLs can also have some trailing querystring items, like this:
  <a href="http://localhost/TestMVC/Larry/LarryTilesList?filterValue=servers" rel="nofollow">http://localhost/TestMVC/Larry/LarryTilesList?filterValue=servers</a></p>
  
  <p>LarryTiles is giving me the problem. "/\bLarryTiles\b/" worked on Friday (after answers from other questions here) but this doesn't match now. :)</p>
  
  <p>I need to find exactly the strings "LarryTiles" and "LarryTilesList" in these two URLs but can't quite figure out how to do that. The URL changes between my local machine and the various servers where it's hosted, so I can't rely on position.</p>
  
  <p>EDIT: added the example with a trailing querystring, which I'd forgotten. Sorry :(</p>