<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1011768" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1011768</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/choping-text-string#comment-1067527</link>
    <description> &lt;p&gt;Alternatively you can use the split() method which was introduced into IE4 and NN4.&lt;/p&gt;
&lt;p&gt;var textStr = &quot;winamp_ra_28k&quot;;&lt;/p&gt;
&lt;p&gt;This creates a new array with three separate entries:&lt;/p&gt;
&lt;p&gt;var txtStrArray = textStr.split(&quot;_&quot;);&lt;/p&gt;
&lt;p&gt;If you want to store them into three separate variables:&lt;/p&gt;
&lt;p&gt;var textStr1 = txtStrArray[0];&lt;br /&gt;
var textStr2 = txtStrArray[1];&lt;br /&gt;
var textStr3 = txtStrArray[2];&lt;/p&gt;
 </description>
     <pubDate>Sun, 16 Jul 2000 15:46:30 +0000</pubDate>
 <dc:creator>Lloyd Hassell</dc:creator>
 <guid isPermaLink="false">comment 1067527 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Using indexOf, length, and substring</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/choping-text-string#comment-1067517</link>
    <description> &lt;p&gt;Use the .index, .length, and .substring functions&lt;/p&gt;
&lt;p&gt;text_string = new String(&quot;winamp_ra_28k&quot;);&lt;/p&gt;
&lt;p&gt;//search for position of first _&lt;br /&gt;
temp = text_string.indexOf(&quot;_&quot;);&lt;br /&gt;
//search for position of next underscore&lt;br /&gt;
temp2= text_string.indexOf(&quot;_&quot;,temp+1);&lt;/p&gt;
&lt;p&gt;//assign first string from start to temp(non-inclusive)&lt;br /&gt;
first_string=text_string.substring(0,temp);&lt;br /&gt;
//assign second string from temp+1 to temp2(non-inclusive)&lt;br /&gt;
second_string=text_string.substring(temp+1,temp2);&lt;br /&gt;
//assign third string from temp2+1 to end of string&lt;br /&gt;
third_string=text_string.substring(temp2+1,text_string.length);&lt;/p&gt;
&lt;p&gt;[Edited by tazman on 07-16-2000 at 01:32 AM]&lt;/p&gt;
 </description>
     <pubDate>Sun, 16 Jul 2000 05:27:50 +0000</pubDate>
 <dc:creator>tazman</dc:creator>
 <guid isPermaLink="false">comment 1067517 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
