<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: String parsing  formula in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/String-parsing-formula/m-p/51091#M29017</link>
    <description>&lt;P&gt;JSL continues to surprise me!&amp;nbsp; Great solution Justin.&lt;/P&gt;</description>
    <pubDate>Mon, 12 Feb 2018 15:25:48 GMT</pubDate>
    <dc:creator>pmroz</dc:creator>
    <dc:date>2018-02-12T15:25:48Z</dc:date>
    <item>
      <title>String parsing  formula</title>
      <link>https://community.jmp.com/t5/Discussions/String-parsing-formula/m-p/51077#M29006</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;How can I define formula to import the &lt;U&gt;right&lt;/U&gt; srting after the &lt;U&gt;last&lt;/U&gt; "_"?&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Column1&lt;/TD&gt;&lt;TD&gt;Formula&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;CONTINUITY_P_TXP_POS_400UA_TI1310P&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;TI1310P&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;CONTINUITY_DIG_NEG_2MA_CCLK&amp;nbsp;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN&gt;CCLK&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thaks in advance!&lt;/P&gt;&lt;P&gt;Assaf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2018 11:10:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/String-parsing-formula/m-p/51077#M29006</guid>
      <dc:creator>Assaf1</dc:creator>
      <dc:date>2018-02-12T11:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: String parsing  formula</title>
      <link>https://community.jmp.com/t5/Discussions/String-parsing-formula/m-p/51080#M29009</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/10955"&gt;@Assaf1&lt;/a&gt;,&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Do you need the formula to be in a table ? I can offer the following solution that works :&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Current Data Table(); // Ensure your data table is open and it is current 

Vals = :Column 1 &amp;lt;&amp;lt; Get Values;  // Get Values out 

Res = List(); // Define empty list 


for(i = 1 , i &amp;lt;= N Items(Vals), i++,
	 Test = Words(Vals[i],"_"); // Words is the function that will split your string by delimiter 
	 
	 Insert Into(Res,Test[N Items(Test)]);

   );

Show(Res); &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Alternatively,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;You could use a similar approach to parse out the strings separated by the delimiter in a column formula as well, by&amp;nbsp;using the following as a column formula:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Words(:Column 1, "_")&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;But then, I can't really think of a way to get the last string out in the column formula. Hope this helps some. Maybe look at "Substr" function - it might help&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2018 12:38:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/String-parsing-formula/m-p/51080#M29009</guid>
      <dc:creator>uday_guntupalli</dc:creator>
      <dc:date>2018-02-12T12:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: String parsing  formula</title>
      <link>https://community.jmp.com/t5/Discussions/String-parsing-formula/m-p/51085#M29012</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Words&lt;/STRONG&gt; will get you there.&amp;nbsp; This formula will do the trick:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;c = Words(:Column 1, "_"); 
d = c[N Items(c)];&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 12 Feb 2018 13:25:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/String-parsing-formula/m-p/51085#M29012</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2018-02-12T13:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: String parsing  formula</title>
      <link>https://community.jmp.com/t5/Discussions/String-parsing-formula/m-p/51087#M29013</link>
      <description>&lt;P&gt;Thanks a lot for your suport&lt;/P&gt;&lt;P&gt;It's work!&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2018 13:37:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/String-parsing-formula/m-p/51087#M29013</guid>
      <dc:creator>Assaf1</dc:creator>
      <dc:date>2018-02-12T13:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: String parsing  formula</title>
      <link>https://community.jmp.com/t5/Discussions/String-parsing-formula/m-p/51090#M29016</link>
      <description>&lt;P&gt;Similarly, you&amp;nbsp;could use the Word function to get the last "word" using an index of -1 (i.e. count backwards from the end). This just saves you from needing any JSL variables/lists.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Word( -1, :Column 1, "_"); &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 12 Feb 2018 14:59:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/String-parsing-formula/m-p/51090#M29016</guid>
      <dc:creator>Justin_Chilton</dc:creator>
      <dc:date>2018-02-12T14:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: String parsing  formula</title>
      <link>https://community.jmp.com/t5/Discussions/String-parsing-formula/m-p/51091#M29017</link>
      <description>&lt;P&gt;JSL continues to surprise me!&amp;nbsp; Great solution Justin.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2018 15:25:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/String-parsing-formula/m-p/51091#M29017</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2018-02-12T15:25:48Z</dc:date>
    </item>
  </channel>
</rss>

