<?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: Extract String which has positive and negtive numbers in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Extract-String-which-has-positive-and-negative-numbers/m-p/925114#M108312</link>
    <description>&lt;P&gt;Regex can also be an option (&lt;A href="https://regex101.com/r/5fgzrx/1" target="_blank"&gt;https://regex101.com/r/5fgzrx/1&lt;/A&gt;&amp;nbsp;for partial explanation on how this works)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Num(Regex(:Fname, "-(-?\d{3})-(-?\d{3})", "\1"))&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;change "\1" to "\2" for Y&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1768939456727.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/91637iDD50F6B3D5224147/image-size/large?v=v2&amp;amp;px=999" role="button" title="jthi_0-1768939456727.png" alt="jthi_0-1768939456727.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 20 Jan 2026 20:04:44 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2026-01-20T20:04:44Z</dc:date>
    <item>
      <title>Extract String which has positive and negative numbers</title>
      <link>https://community.jmp.com/t5/Discussions/Extract-String-which-has-positive-and-negative-numbers/m-p/868621#M108309</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have a table1.jmp as atteched. How do I extract the X and Y as circled in the red box? The X and Y values can sometimes be negative. For example, the XY values from the 1st row is -280,-396. The XY values from the 2nd row is 284,-228.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cchueng_0-1744749768432.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/74900i055700E5C9659BAF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="cchueng_0-1744749768432.png" alt="cchueng_0-1744749768432.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jan 2026 14:24:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Extract-String-which-has-positive-and-negative-numbers/m-p/868621#M108309</guid>
      <dc:creator>cchueng</dc:creator>
      <dc:date>2026-01-21T14:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: Extract String which has positive and negtive numbers</title>
      <link>https://community.jmp.com/t5/Discussions/Extract-String-which-has-positive-and-negative-numbers/m-p/868748#M108310</link>
      <description>&lt;P&gt;This is a tough one. Any wise advice?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Apr 2025 14:38:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Extract-String-which-has-positive-and-negative-numbers/m-p/868748#M108310</guid>
      <dc:creator>cchueng</dc:creator>
      <dc:date>2025-04-16T14:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: Extract String which has positive and negtive numbers</title>
      <link>https://community.jmp.com/t5/Discussions/Extract-String-which-has-positive-and-negative-numbers/m-p/924118#M108311</link>
      <description>&lt;P&gt;Here are the formulas that will do what you want&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// For the X value
Num( Substitute( Word( 5, Substitute( :Fname, "--", "-&amp;amp;" ), "-" ), "&amp;amp;", "-" ) )

// For the Y value
Num( Substitute( Word( 6, Substitute( :Fname, "--", "-&amp;amp;" ), "-" ), "&amp;amp;", "-" ) )&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1768422481962.png" style="width: 622px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/91088i1CBE0F8E188974EA/image-dimensions/622x351?v=v2" width="622" height="351" role="button" title="txnelson_0-1768422481962.png" alt="txnelson_0-1768422481962.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jan 2026 20:28:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Extract-String-which-has-positive-and-negative-numbers/m-p/924118#M108311</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2026-01-14T20:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: Extract String which has positive and negtive numbers</title>
      <link>https://community.jmp.com/t5/Discussions/Extract-String-which-has-positive-and-negative-numbers/m-p/925114#M108312</link>
      <description>&lt;P&gt;Regex can also be an option (&lt;A href="https://regex101.com/r/5fgzrx/1" target="_blank"&gt;https://regex101.com/r/5fgzrx/1&lt;/A&gt;&amp;nbsp;for partial explanation on how this works)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Num(Regex(:Fname, "-(-?\d{3})-(-?\d{3})", "\1"))&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;change "\1" to "\2" for Y&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1768939456727.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/91637iDD50F6B3D5224147/image-size/large?v=v2&amp;amp;px=999" role="button" title="jthi_0-1768939456727.png" alt="jthi_0-1768939456727.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jan 2026 20:04:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Extract-String-which-has-positive-and-negative-numbers/m-p/925114#M108312</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2026-01-20T20:04:44Z</dc:date>
    </item>
  </channel>
</rss>

