<?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: How to remove words from a column that occur before a certain phrase in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-remove-words-from-a-column-that-occur-before-a-certain/m-p/579614#M78686</link>
    <description>&lt;P&gt;You can do this with a column formula containing a &lt;A href="https://www.jmp.com/support/help/en/17.0/#page/jmp/regular-expressions.shtml" target="_blank" rel="noopener"&gt;regular expression&lt;/A&gt;. See the attached example table for one that works for the situation you describe, and if you're new to regular expressions, I personally recommend the website &lt;A href="https://regexr.com/" target="_blank" rel="noopener"&gt;https://regexr.com/&lt;/A&gt;. It's a good place to test different regular expressions to see if they're capturing the text you want, and it has a lot of nice hover help and quick references.&lt;/P&gt;</description>
    <pubDate>Fri, 09 Dec 2022 21:36:52 GMT</pubDate>
    <dc:creator>Ross_Metusalem</dc:creator>
    <dc:date>2022-12-09T21:36:52Z</dc:date>
    <item>
      <title>How to remove words from a column that occur before a certain phrase</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-remove-words-from-a-column-that-occur-before-a-certain/m-p/579571#M78684</link>
      <description>&lt;P&gt;I have a column with a variable number of words. Somewhere inside each row the phrase "my name is Spot" occurs. How can I remove all of the text that occurs prior to this phrase?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2022 20:46:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-remove-words-from-a-column-that-occur-before-a-certain/m-p/579571#M78684</guid>
      <dc:creator>txwrangler</dc:creator>
      <dc:date>2022-12-09T20:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove words from a column that occur before a certain phrase</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-remove-words-from-a-column-that-occur-before-a-certain/m-p/579614#M78686</link>
      <description>&lt;P&gt;You can do this with a column formula containing a &lt;A href="https://www.jmp.com/support/help/en/17.0/#page/jmp/regular-expressions.shtml" target="_blank" rel="noopener"&gt;regular expression&lt;/A&gt;. See the attached example table for one that works for the situation you describe, and if you're new to regular expressions, I personally recommend the website &lt;A href="https://regexr.com/" target="_blank" rel="noopener"&gt;https://regexr.com/&lt;/A&gt;. It's a good place to test different regular expressions to see if they're capturing the text you want, and it has a lot of nice hover help and quick references.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2022 21:36:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-remove-words-from-a-column-that-occur-before-a-certain/m-p/579614#M78686</guid>
      <dc:creator>Ross_Metusalem</dc:creator>
      <dc:date>2022-12-09T21:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove words from a column that occur before a certain phrase</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-remove-words-from-a-column-that-occur-before-a-certain/m-p/579639#M78687</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14688"&gt;@Ross_Metusalem&lt;/a&gt;&amp;nbsp;is right, you can use a regular expression but, if you're like me and have never gotten the hang of them, you'll probably find that the character functions in JMP can give you most of the flexibility you need.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this case, &lt;A href="https://www.jmp.com/support/help/en/17.0/#page/jmp/character-functions-2.shtml#ww2467451" target="_self"&gt;Contains()&lt;/A&gt; and &lt;A href="https://www.jmp.com/support/help/en/17.0/#page/jmp/character-functions-2.shtml#ww2490291" target="_self"&gt;Substr()&lt;/A&gt; work really well. If you want a case insensitive comparison you can use &lt;A href="https://www.jmp.com/support/help/en/17.0/#page/jmp/character-functions-2.shtml#ww2479534" target="_self"&gt;Lowercase()&lt;/A&gt; to get rid of the casing.&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="2022-12-09_16-56-41.208.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/48130i66FB102AFB409498/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2022-12-09_16-56-41.208.png" alt="2022-12-09_16-56-41.208.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Contains() and Substr()" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/48123i032E8E28129D16D8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2022-12-09_16-55-59.843.png" alt="Contains() and Substr()" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Contains() and Substr()&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lowercase()" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/48132iF9841CE17CAB1D26/image-dimensions/400x162?v=v2" width="400" height="162" role="button" title="2022-12-09_16-56-11.456.png" alt="Lowercase()" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Lowercase()&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that the -1 argument in Substr() means "to the end of the string".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/982"&gt;@Craige_Hales&lt;/a&gt;&amp;nbsp;has some good hints on the character string functions:&amp;nbsp;&lt;LI-MESSAGE title="JSL Character String Functions" uid="21323" url="https://community.jmp.com/t5/Uncharted/JSL-Character-String-Functions/m-p/21323#U21323" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-blog-thread lia-fa-icon lia-fa-blog lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2022 22:09:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-remove-words-from-a-column-that-occur-before-a-certain/m-p/579639#M78687</guid>
      <dc:creator>Jeff_Perkinson</dc:creator>
      <dc:date>2022-12-09T22:09:25Z</dc:date>
    </item>
  </channel>
</rss>

