title: Parsing URL string in Ruby
body: <p>I have a pretty simple string I want to parse in ruby and trying to find the most elegant solution.  The string is of format
  /xyz/mov/exdaf/daeed.mov?arg1=blabla&amp;arg2=3bla3bla</p>
  
  <p>What I would like to have is :
  string1: /xyz/mov/exdaf/daeed.mov
  string2: arg1=blabla&amp;arg2=3bla3bla</p>
  
  <p>so basically tokenise on ? </p>
  
  <p>but can't find a good example. 
  Any help would be appreciated.</p>