<?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: Find location of item in a list that partially matched to a string (search list by partial match) in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Find-location-of-item-in-a-list-that-partially-matched-to-a/m-p/477220#M72161</link>
    <description>&lt;P&gt;Here is one way&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
thelist = {"big apple", "big orange", "big pear"};
string = "orange";

found = 0;
For( i = 1, i &amp;lt;= N Items( thelist ), i++,
	If( Contains( thelist[i], string ),
		found = i;
		Break();
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 07 Apr 2022 23:37:37 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2022-04-07T23:37:37Z</dc:date>
    <item>
      <title>Find location of item in a list that partially matched to a string (search list by partial match)</title>
      <link>https://community.jmp.com/t5/Discussions/Find-location-of-item-in-a-list-that-partially-matched-to-a/m-p/477153#M72158</link>
      <description>&lt;P&gt;Can't find a good way of doing this task.&lt;/P&gt;&lt;P&gt;Let's say I have this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;list = {"big apple", "big orange", "big pear"};
string = "orange";&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;How do I find a location of an item in the &lt;EM&gt;list&lt;/EM&gt; that partially matches to the &lt;EM&gt;string&lt;/EM&gt;?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 16:56:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Find-location-of-item-in-a-list-that-partially-matched-to-a/m-p/477153#M72158</guid>
      <dc:creator>miguello</dc:creator>
      <dc:date>2023-06-09T16:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: Find location of item in a list that partially matched to a string (search list by partial match)</title>
      <link>https://community.jmp.com/t5/Discussions/Find-location-of-item-in-a-list-that-partially-matched-to-a/m-p/477220#M72161</link>
      <description>&lt;P&gt;Here is one way&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
thelist = {"big apple", "big orange", "big pear"};
string = "orange";

found = 0;
For( i = 1, i &amp;lt;= N Items( thelist ), i++,
	If( Contains( thelist[i], string ),
		found = i;
		Break();
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 07 Apr 2022 23:37:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Find-location-of-item-in-a-list-that-partially-matched-to-a/m-p/477220#M72161</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2022-04-07T23:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: Find location of item in a list that partially matched to a string (search list by partial match)</title>
      <link>https://community.jmp.com/t5/Discussions/Find-location-of-item-in-a-list-that-partially-matched-to-a/m-p/477662#M72199</link>
      <description>&lt;P&gt;Ok, I was hoping that there would be a solution without iteration.&lt;/P&gt;&lt;P&gt;Something in one line that would either give me&amp;nbsp; the location mask (like {0, 1, 0} for the case above) or the list of locations (like {2} for the case above)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 22:01:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Find-location-of-item-in-a-list-that-partially-matched-to-a/m-p/477662#M72199</guid>
      <dc:creator>miguello</dc:creator>
      <dc:date>2022-04-08T22:01:01Z</dc:date>
    </item>
  </channel>
</rss>

