get particular string part in javascript
<p>I have a javascript string like "firstHalf_0_0_0" or secondHalf_0_0_0". Now I want to get the string before the string "Half" from above both strings using javascript.Please help me.</p>

<p>Thanks.</p>
