title: Getting all links on a page that match a url string
body: <p>I'm currently using this code (along with Mootools) to build an array of all anchors in the <code>#subnav</code> div that contain a specific url string:</p>
  
  <p><code>$('subnav').getElements('a[href*=/'+href+']')</code></p>
  
  <p>Problem is if I'm looking for <code>work.aspx?subsection=24&amp;project=1</code> that will match anchors with a URL of <code>work.aspx?subsection=24&amp;project=15</code>.</p>
  
  <p>How can I prevent that from happening?</p>