Need some help getting some stuff off a string
<p>I want to get some info out of my string but there's two possible "expressions" for the string. I want to get <code>"a"</code> &amp; <code>"b"</code> out of the string. This is how they look:</p>

<p>Format one:</p>

<pre><code>    http://default.com/default/a/b
</code></pre>

<p>Format two:</p>

<pre><code>    http://default.com/#!default|1|a|b|1
</code></pre>

<p>How can I do this?</p>
