<?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 obtain all parts of a string except for the last segment? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-obtain-all-parts-of-a-string-except-for-the-last-segment/m-p/909047#M106768</link>
    <description>&lt;P&gt;Negative indexing&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Word([1 -2], "This is a sentence");&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 22 Oct 2025 08:02:52 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2025-10-22T08:02:52Z</dc:date>
    <item>
      <title>How to obtain all parts of a string except for the last segment?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-obtain-all-parts-of-a-string-except-for-the-last-segment/m-p/909037#M106767</link>
      <description>&lt;DIV data-container=""&gt;&lt;SPAN data-expression=""&gt;How can I get all parts of a string except for the last segment? For example, given "This is a sentence," using -1 can get the last word "sentence." Using [1 3] can get "This is a," but since the string's length varies each time, the positions are not fixed. Is there a way to directly get all parts of the string except for the last segment?&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
Word( -1, "This is a sentence" );
Word( [1 3], "This is a sentence" );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 Oct 2025 08:01:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-obtain-all-parts-of-a-string-except-for-the-last-segment/m-p/909037#M106767</guid>
      <dc:creator>BabyDoragon</dc:creator>
      <dc:date>2025-10-22T08:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to obtain all parts of a string except for the last segment?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-obtain-all-parts-of-a-string-except-for-the-last-segment/m-p/909047#M106768</link>
      <description>&lt;P&gt;Negative indexing&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Word([1 -2], "This is a sentence");&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 Oct 2025 08:02:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-obtain-all-parts-of-a-string-except-for-the-last-segment/m-p/909047#M106768</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-10-22T08:02:52Z</dc:date>
    </item>
  </channel>
</rss>

