spliting a string based on delimiter
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/96428/how-do-i-split-this-string-with-javascript">How do I split this string with JavaScript?</a>  </p>
</blockquote>



<p>I have a string in following format</p>

<pre><code>part1/part2

/ is the delimiter
</code></pre>

<p>now i want to get split the string and get part 1.How can i do it?</p>
