title: Splitting a string in swift using multiple delimiters
body: <p>I am trying to split (or explode) a string in Swift (1.2) using multiple delimiters, or seperators as Apple calls them.</p>
  
  <p>My string looks like this:</p>
  
  <pre><code>KEY1=subKey1=value&amp;subkey2=valueKEY2=subkey1=value&amp;subkey2=valueKEY3=subKey1=value&amp;subkey3=value
  </code></pre>
  
  <p>I have formatted it for easy reading:</p>
  
  <pre><code>KEY1=subKey1=value&amp;subkey2=value
  KEY2=subkey1=value&amp;subkey2=value
  KEY3=subKey1=value&amp;subkey3=value
  </code></pre>
  
  <p>The uppercase "KEY" are predefined names.
  <br>I was trying to do this using:</p>
  
  <pre><code>var splittedString = string.componentsSeparatedByString("KEY1")
  </code></pre>
  
  <p>But as you can see, I can only do this with one KEY as the separator, so I am looking for something like this:</p>
  
  <pre><code>var splittedString = string.componentsSeperatedByStrings(["KEY1", "KEY2", "KEY3"])
  </code></pre>
  
  <p>So the result would be:</p>
  
  <pre><code>[
    "KEY1" =&gt; "subKey1=value&amp;subkey2=value",
    "KEY2" =&gt; "subkey1=value&amp;subkey2=value",
    "KEY3" =&gt; "subkey1=value&amp;subkey2=value"
  ]
  </code></pre>
  
  <p>Is there anything built into Swift 1.2 that I can use?
  Or is there some kind of extension/library that can do this easily? </p>
  
  <p>Thanks for your time, and have a great day!</p>