<?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 getting a string from a list, where string contains defined text in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/getting-a-string-from-a-list-where-string-contains-defined-text/m-p/467498#M71161</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can someone help me please? I have created a list that looks something like that:&lt;/P&gt;&lt;P&gt;{"C1234_here_is_some_text", "C1235_here_is_some_other_text", "C1236_you_get_the_idea", ..., "C2000_still_dont_ends_here"}&lt;/P&gt;&lt;P&gt;I want to get the complete string of the list where the first part of the string (e.g. "C1234") is "C1999".&lt;/P&gt;&lt;P&gt;Whats the correct code here?&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jun 2023 18:12:28 GMT</pubDate>
    <dc:creator>sebbeyer</dc:creator>
    <dc:date>2023-06-09T18:12:28Z</dc:date>
    <item>
      <title>getting a string from a list, where string contains defined text</title>
      <link>https://community.jmp.com/t5/Discussions/getting-a-string-from-a-list-where-string-contains-defined-text/m-p/467498#M71161</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can someone help me please? I have created a list that looks something like that:&lt;/P&gt;&lt;P&gt;{"C1234_here_is_some_text", "C1235_here_is_some_other_text", "C1236_you_get_the_idea", ..., "C2000_still_dont_ends_here"}&lt;/P&gt;&lt;P&gt;I want to get the complete string of the list where the first part of the string (e.g. "C1234") is "C1999".&lt;/P&gt;&lt;P&gt;Whats the correct code here?&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 18:12:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/getting-a-string-from-a-list-where-string-contains-defined-text/m-p/467498#M71161</guid>
      <dc:creator>sebbeyer</dc:creator>
      <dc:date>2023-06-09T18:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: getting a string from a list, where string contains defined text</title>
      <link>https://community.jmp.com/t5/Discussions/getting-a-string-from-a-list-where-string-contains-defined-text/m-p/467535#M71165</link>
      <description>&lt;P&gt;This is how I would do it&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
x = {"C1234_here_is_some_text", "C1235_here_is_some_other_text", "C1236_you_get_the_idea", ..., "C2000_still_dont_ends_here"};

found = "Not Found";
For( i = 1, i &amp;lt;= N Items( x ), i++,
	If( Contains( x[i], "C1999" ) == 1,
		found = x[i];
		Break()
	)
);
show(found);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 07 Mar 2022 14:14:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/getting-a-string-from-a-list-where-string-contains-defined-text/m-p/467535#M71165</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2022-03-07T14:14:24Z</dc:date>
    </item>
  </channel>
</rss>

