extract part of URL from parent URL
<p>For this url </p>

<pre><code>"http://testsite/sites/TestSubSite/objstrat/CultureConnection/Pages/default.aspx"
</code></pre>

<p>Trying to extract everything after enterprise/sites.
I want <code>"/TestSubSite/objstrat/CultureConnection/Pages/default.aspx"</code></p>

<p>I can get the filename like this: </p>

<pre><code>var filename = parenturl.substring(parenturl.lastIndexOf("/") + );
</code></pre>

<p>But not sure how to extract from the middle..</p>
