title: Remove query parameters that Google appends to search results
body: <p>Thanks for taking the time to answer my question.</p>
  
  <p>I have written a function in Java which connects to google.com and collects the first 200 search results returned given a query. However, Google appends some "funky" parameters to the original url so the original:</p>
  
  <p><a href="http://en.wikipedia.org/wiki/World_Chess_Championship_2013" rel="nofollow">http://en.wikipedia.org/wiki/World_Chess_Championship_2013</a></p>
  
  <p>becomes: </p>
  
  <p><a href="http://en.wikipedia.org/wiki/World_Chess_Championship_2013&amp;sa=U&amp;ei=EPiIUuSGB5OV7AbB0YCQCA&amp;ved=0CCMQFjAD&amp;usg=AFQjCNEsQZZJUO1CU7cCwBaUDAXP9LSsjQ" rel="nofollow">http://en.wikipedia.org/wiki/World_Chess_Championship_2013&amp;sa=U&amp;ei=EPiIUuSGB5OV7AbB0YCQCA&amp;ved=0CCMQFjAD&amp;usg=AFQjCNEsQZZJUO1CU7cCwBaUDAXP9LSsjQ</a>.</p>
  
  <p>Now this would not be a problem since I could just cut the String at the point where I encounter "&amp;sa..". However, Google appends different parameters for different data types. So a PDF link contains one set of parameters, images another, websites a third one etc..</p>
  
  <p>Do you know of a way where I can programatically remove the parameters that google appends in order to get the original url?</p>
  
  <p>Thanks</p>