get detailed substring
<p>i have a problem i'm trying to solve, i have a javascript string (yes this is the string i have)</p>

<pre><code>&lt;div class="stories-title" onclick="fun(4,'this is test'); navigate(1)
</code></pre>

<p>What i want to achieve are the following points:</p>

<p>1) cut characters from start until the first ' character (cut the ' too)</p>

<hr>

<p>2) cut characters from second ' character until the end of the string</p>

<hr>

<p>3) put what's remaining in a variable</p>

<p>For example, the result of this example would be the string "this is test"</p>

<p>I would be very grateful if anyone have a solution.. Especially a simple one so i can understand it. </p>

<p>Thanks all in advance</p>
