title: PHP-like string parsing
body: <p>I'm writing a mini-console of sorts and I'm trying to figure out how to extract things from a link. For example, in PHP this is a request variable 
  so: </p>
  
  <p><code>http://somelink.com/somephp.php?variable1=10&amp;variable2=20</code></p>
  
  <p>Then PHP figures out the url parameters and assigns them to a variable.  </p>
  
  <p><strong>How would I parse something like this in Swift?</strong></p>
  
  <p>So, given the string I'd want to take: variable1=10 and variable2=20 etc, is there a simple way to do this? I tried googling around but didn't really know what I was searching for. </p>
  
  <p>I have a really horrible hacky way of doing this but it's not really extendable.</p>