How to split the strings in angular js : <p>I wanted to split a string and get the string in two parts.</p>

<p>for example:</p>

<pre><code>www.medicoshere.com/register.html?23457cedlske234cd
</code></pre>

<p>i wish to split the string in the above url and store the string that is after the ? to a variable. How can i do that.</p>
