<?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: Case Insensitive searches in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Case-Insensitive-searches/m-p/12230#M11661</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;more information on case and regex: &lt;A href="https://community.jmp.com/blogs/id/1102" target="_blank"&gt;Back Reference&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Nov 2016 10:02:43 GMT</pubDate>
    <dc:creator>Craige_Hales</dc:creator>
    <dc:date>2016-11-09T10:02:43Z</dc:date>
    <item>
      <title>Case Insensitive searches</title>
      <link>https://community.jmp.com/t5/Discussions/Case-Insensitive-searches/m-p/12227#M11658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Most JMP is case insensitive except when it comes to text values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since text data is often messy and case is one way it shows up, is there a way to do case insensitive&amp;nbsp; versions of Contains?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 17:34:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Case-Insensitive-searches/m-p/12227#M11658</guid>
      <dc:creator>Hegedus</dc:creator>
      <dc:date>2015-05-05T17:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: Case Insensitive searches</title>
      <link>https://community.jmp.com/t5/Discussions/Case-Insensitive-searches/m-p/12228#M11659</link>
      <description>&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;regex is case sensitive by default,&amp;nbsp; PatMatch is insensitive by default.&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;regex("The Quick Brown Fox", "quick", "\0", IGNORECASE);
"Quick"

regex("The Quick Brown Fox", "quick", "\0");
returns missing

rc = PatMatch("The Quick Brown Fox", patPos()&amp;gt;&amp;gt;where + "quick"&amp;gt;&amp;gt;what);
show(rc,where,what);
rc = 1;
where = 4;
what = "Quick";

PatMatch("The Quick Brown Fox", patPos()&amp;gt;&amp;gt;where + "quick"&amp;gt;&amp;gt;what, NULL, MATCHCASE);
returns 0&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.jmp.com/blogs/id/1035" target="_blank" rel="noopener"&gt;Regex&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jan 2019 12:16:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Case-Insensitive-searches/m-p/12228#M11659</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2019-01-31T12:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: Case Insensitive searches</title>
      <link>https://community.jmp.com/t5/Discussions/Case-Insensitive-searches/m-p/12229#M11660</link>
      <description>&lt;P&gt;If you want to specifically use Contains(), you can use Lowercase() or Uppercase() to perform case-insensitive searches:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;str1 = "Hello";
str2 = "ELL";

Contains( Lowercase(str1), Lowercase(str2) );

Contains( Lowercase(str1), "ell" );

Contains( Lowercase(str1), Lowercase("Ell") );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jan 2019 12:17:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Case-Insensitive-searches/m-p/12229#M11660</guid>
      <dc:creator>Melanie_J_Drake</dc:creator>
      <dc:date>2019-01-31T12:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: Case Insensitive searches</title>
      <link>https://community.jmp.com/t5/Discussions/Case-Insensitive-searches/m-p/12230#M11661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;more information on case and regex: &lt;A href="https://community.jmp.com/blogs/id/1102" target="_blank"&gt;Back Reference&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2016 10:02:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Case-Insensitive-searches/m-p/12230#M11661</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2016-11-09T10:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: Case Insensitive searches</title>
      <link>https://community.jmp.com/t5/Discussions/Case-Insensitive-searches/m-p/428318#M67764</link>
      <description>&lt;P&gt;this was helpful to me and I think it should be mentioned in the Help for the Contains function, which does not even mention that the function is case-sensitive.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 17:17:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Case-Insensitive-searches/m-p/428318#M67764</guid>
      <dc:creator>tim_reeves</dc:creator>
      <dc:date>2021-10-19T17:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: Case Insensitive searches</title>
      <link>https://community.jmp.com/t5/Discussions/Case-Insensitive-searches/m-p/428352#M67766</link>
      <description>&lt;P&gt;If you're trying to find a matching item in a list of strings (say column titles) and you want to match JMP's default of ignoring case / spaces, you can use the As Name function, see below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;Names Default to Here( 1 );

list = {"Height", "Weight", "CamelCase", "__Dunder_Mifflin__" };

Show( Contains( list, "camel case" ) ); // 0

named list = {};
For( i = 1, i &amp;lt;= N Items( list ), i++,
	named list[i] = As Name( list[i] )
);

Show( Contains( named list, As Name( "camel case" ) ) );&amp;nbsp;//&amp;nbsp;3&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 19 Oct 2021 19:15:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Case-Insensitive-searches/m-p/428352#M67766</guid>
      <dc:creator>ErraticAttack</dc:creator>
      <dc:date>2021-10-19T19:15:14Z</dc:date>
    </item>
  </channel>
</rss>

