<?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: split long string based on position of delimiter in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/split-long-string-based-on-position-of-delimiter/m-p/767699#M94793</link>
    <description>&lt;P&gt;You could use Word() with negative indices&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

str1 = "shjdjsh._ndjrpe_hfkjd_tyrwytre5_hlhm_jgds.d._jkdjf_hfkd_a";
result1 = "ndjrpe_hfkjd_tyrwytre5_hlhm_jgds.d._jkdjf_hfkd_a";

str2 = "hhd_wew_klf:_jdbfjdf_qwkokv_ctls_msdn_a_f_g_skjd_lad_vtl_sdjnskjshdja_jndf_skdj_ccf";
result2 = "g_skjd_lad_vtl_sdjnskjshdja_jndf_skdj_ccf";

res1 = Word([-8 -1], str1, "_");
res2 = Word([-8 -1], str2, "_");

res1 == result1;
res2 == result2;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 22 Jun 2024 15:27:23 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2024-06-22T15:27:23Z</dc:date>
    <item>
      <title>split long string based on position of delimiter</title>
      <link>https://community.jmp.com/t5/Discussions/split-long-string-based-on-position-of-delimiter/m-p/767684#M94791</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have a column that has long strings (see example below). I want to extract all the text after the 7th delimiter of "_"&amp;nbsp; from the right. I tried munger but doesnt seem working well at the end part.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can someone provide suggestion how I can do it right?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1)shjdjsh._ndjrpe_hfkjd_tyrwytre5_hlhm_jgds.d._jkdjf_hfkd_a&lt;/P&gt;&lt;P&gt;desired output:&amp;nbsp;ndjrpe_hfkjd_tyrwytre5_hlhm_jgds.d._jkdjf_hfkd_a&lt;BR /&gt;2)hhd_wew_klf:_jdbfjdf_qwkokv_ctls_msdn_a_f_g_skjd_lad_vtl_sdjnskjshdja_jndf_skdj_ccf&lt;BR /&gt;desired output:&amp;nbsp;g_skjd_lad_vtl_sdjnskjshdja_jndf_skdj_ccf&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 22 Jun 2024 15:03:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/split-long-string-based-on-position-of-delimiter/m-p/767684#M94791</guid>
      <dc:creator>dadawasozo</dc:creator>
      <dc:date>2024-06-22T15:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: split long string based on position of delimiter</title>
      <link>https://community.jmp.com/t5/Discussions/split-long-string-based-on-position-of-delimiter/m-p/767698#M94792</link>
      <description>&lt;P&gt;Here is the formula I used&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Substr(
	:Column 1,
	Contains( :Column 1, Word( -8, :Column 1, "_" ) )
)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1719069880382.png" style="width: 679px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/65506i9D76F81CD03ACAF0/image-dimensions/679x146?v=v2" width="679" height="146" role="button" title="txnelson_0-1719069880382.png" alt="txnelson_0-1719069880382.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 22 Jun 2024 15:24:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/split-long-string-based-on-position-of-delimiter/m-p/767698#M94792</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2024-06-22T15:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: split long string based on position of delimiter</title>
      <link>https://community.jmp.com/t5/Discussions/split-long-string-based-on-position-of-delimiter/m-p/767699#M94793</link>
      <description>&lt;P&gt;You could use Word() with negative indices&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

str1 = "shjdjsh._ndjrpe_hfkjd_tyrwytre5_hlhm_jgds.d._jkdjf_hfkd_a";
result1 = "ndjrpe_hfkjd_tyrwytre5_hlhm_jgds.d._jkdjf_hfkd_a";

str2 = "hhd_wew_klf:_jdbfjdf_qwkokv_ctls_msdn_a_f_g_skjd_lad_vtl_sdjnskjshdja_jndf_skdj_ccf";
result2 = "g_skjd_lad_vtl_sdjnskjshdja_jndf_skdj_ccf";

res1 = Word([-8 -1], str1, "_");
res2 = Word([-8 -1], str2, "_");

res1 == result1;
res2 == result2;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 22 Jun 2024 15:27:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/split-long-string-based-on-position-of-delimiter/m-p/767699#M94793</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-06-22T15:27:23Z</dc:date>
    </item>
  </channel>
</rss>

