<?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: Select rows based on first character in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Select-rows-based-on-first-character/m-p/75115#M35897</link>
    <description>&lt;P&gt;For some reason that solution still left a few numbers that didn't fit my criteria, but when I split it up as two separate lines it works great! Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;dt&amp;nbsp;&amp;lt;&amp;lt;select where(left(:column, 1) != "5" );&lt;BR /&gt;dt&amp;nbsp;&amp;lt;&amp;lt;select where(length(:column) != 7, current selection("extend") );&lt;/P&gt;</description>
    <pubDate>Sat, 22 Sep 2018 02:48:30 GMT</pubDate>
    <dc:creator>ab0716</dc:creator>
    <dc:date>2018-09-22T02:48:30Z</dc:date>
    <item>
      <title>Select rows based on first character</title>
      <link>https://community.jmp.com/t5/Discussions/Select-rows-based-on-first-character/m-p/74994#M35890</link>
      <description>&lt;P&gt;Hi I have a column with a lot of numbers and some text. Below is a snipet of what&amp;nbsp;my data looks like. I'm tring to&amp;nbsp;hide and exclude all rows that aren't 7 digits long and don't start with 5 (i.e. I only want numbers like 5******).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;5238403&lt;BR /&gt;5236577&lt;BR /&gt;3238403&lt;BR /&gt;ASKU&lt;BR /&gt;523660682&lt;BR /&gt;asku&lt;BR /&gt;2536614&lt;BR /&gt;NI&lt;BR /&gt;5236610&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So far I know how to exclude all the rows that aren't 7 characters long, but I can't figure out how to select the rows that&amp;nbsp;don't begin with 5 (e.g.&amp;nbsp;&lt;SPAN&gt;2536614).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;dt&amp;lt;&amp;lt;select where(length(:column) != 7 );&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;dt&amp;lt;&amp;lt; hide and exclude (1);&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Sep 2018 22:31:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Select-rows-based-on-first-character/m-p/74994#M35890</guid>
      <dc:creator>ab0716</dc:creator>
      <dc:date>2018-09-21T22:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: Select rows based on first character</title>
      <link>https://community.jmp.com/t5/Discussions/Select-rows-based-on-first-character/m-p/75108#M35891</link>
      <description>&lt;P&gt;&lt;SPAN&gt;dt&amp;lt;&amp;lt;select where(length(:column) != 7 &amp;amp; left(:Column, 1) != "5");&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Sep 2018 23:48:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Select-rows-based-on-first-character/m-p/75108#M35891</guid>
      <dc:creator>vince_faller</dc:creator>
      <dc:date>2018-09-21T23:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: Select rows based on first character</title>
      <link>https://community.jmp.com/t5/Discussions/Select-rows-based-on-first-character/m-p/75115#M35897</link>
      <description>&lt;P&gt;For some reason that solution still left a few numbers that didn't fit my criteria, but when I split it up as two separate lines it works great! Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;dt&amp;nbsp;&amp;lt;&amp;lt;select where(left(:column, 1) != "5" );&lt;BR /&gt;dt&amp;nbsp;&amp;lt;&amp;lt;select where(length(:column) != 7, current selection("extend") );&lt;/P&gt;</description>
      <pubDate>Sat, 22 Sep 2018 02:48:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Select-rows-based-on-first-character/m-p/75115#M35897</guid>
      <dc:creator>ab0716</dc:creator>
      <dc:date>2018-09-22T02:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: Select rows based on first character</title>
      <link>https://community.jmp.com/t5/Discussions/Select-rows-based-on-first-character/m-p/75290#M35911</link>
      <description>&lt;P&gt;If the lot number must be 7 numeric digits, what begins with 5, one more condition needsto be added.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = current data table();

dt&amp;lt;&amp;lt;select where(length(:Column 1) != 7 | left(:Column 1, 1) != "5" | IsMissing(num(:Column 1)));&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Also, new column using a formula can find matches using Regex. Column 2 of the table displayed below, uses the formula&lt;/P&gt;&lt;P&gt;&amp;nbsp;Regex( :Column 1, "(5\d{6}\b)", "\0" ). the selected rows are those selected by the Select Where() command above.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note row 10, 5Z3661A, would not be selected without the additional criteria IsMissing(num(:Column 1))&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 901px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/12560i7CDC976AC0F24C71/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Sep 2018 08:55:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Select-rows-based-on-first-character/m-p/75290#M35911</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2018-09-23T08:55:38Z</dc:date>
    </item>
  </channel>
</rss>

