<?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: Regex: computation speed &amp;amp; incomplete formula run in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Regex-computation-speed-amp-incomplete-formula-run/m-p/615066#M81490</link>
    <description>&lt;P&gt;Oh my gosh, this is embarrassing... I took a look at my regex pattern and started to compare with the strings at, and around, row 3024.&amp;nbsp; I think our database needs some fine tuning; the string has no match for the regex pattern in many of these rows.&amp;nbsp; Eek!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for leading me to do this,&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/982"&gt;@Craige_Hales&lt;/a&gt;!&lt;/P&gt;</description>
    <pubDate>Tue, 21 Mar 2023 17:54:56 GMT</pubDate>
    <dc:creator>StarfruitBob</dc:creator>
    <dc:date>2023-03-21T17:54:56Z</dc:date>
    <item>
      <title>Regex: computation speed &amp; incomplete formula run</title>
      <link>https://community.jmp.com/t5/Discussions/Regex-computation-speed-amp-incomplete-formula-run/m-p/614966#M81483</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two questions about regex.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Below I've shown some code. I'm creating formula columns that parse information from another column. The formulas grab the correct information, but ALWAYS stop at row 3024. The datasets I work with can be tens or rows, or much larger.&lt;BR /&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt &amp;lt;&amp;lt; New column( "Column 1", formula( regex( :Other column, "pattern" ) ) );
dt &amp;lt;&amp;lt; New column( "Column 2", formula( regex( :Other column, "pattern", "\1" ) ) );
dt &amp;lt;&amp;lt; New column( "Column 3", formula( num( regex( :Other column, "pattern" ) ) ) );&lt;BR /&gt;&lt;BR /&gt;dt&amp;nbsp;&amp;lt;&amp;lt;&amp;nbsp;Rerun&amp;nbsp;Formulas;&amp;nbsp;//&amp;nbsp;Doesn't&amp;nbsp;help!&lt;/CODE&gt;&lt;/PRE&gt;&lt;/LI&gt;&lt;LI&gt;In the debugger, timing my script, the timer states that the script is complete in ~1 second, and that these three lines of code take up the bulk of the time. There are other small things going on as well.&amp;nbsp; However, most often, JMP locks up when running it and I have to either stop the script from running in the debugger, or I have to end the task in task manager.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I've used regex in a for() and for each() and had similar issues.&amp;nbsp; However, regex seems like for() and for each() more, as the formula routinely finished, but the time it takes to compete the script run locks up JMP and takes a very long time, if it finishes at all.&lt;BR /&gt;&lt;BR /&gt;This is very basic regex scripting. I've done much more complex things in for loops for other projects, with much larger datasets. The dataset itself was imported as a CSV, but this is the only difference I can spot between it and other datasets.&amp;nbsp; Any ideas as to what's happening?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 16:05:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Regex-computation-speed-amp-incomplete-formula-run/m-p/614966#M81483</guid>
      <dc:creator>StarfruitBob</dc:creator>
      <dc:date>2023-06-09T16:05:59Z</dc:date>
    </item>
    <item>
      <title>Re: Regex: computation speed &amp; incomplete formula run</title>
      <link>https://community.jmp.com/t5/Discussions/Regex-computation-speed-amp-incomplete-formula-run/m-p/615043#M81486</link>
      <description>&lt;P&gt;No idea what is happening, but if you don't need the formulas you can try using &amp;lt;&amp;lt; Set Each Value.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 17:20:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Regex-computation-speed-amp-incomplete-formula-run/m-p/615043#M81486</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-03-21T17:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: Regex: computation speed &amp; incomplete formula run</title>
      <link>https://community.jmp.com/t5/Discussions/Regex-computation-speed-amp-incomplete-formula-run/m-p/615048#M81487</link>
      <description>I'd guess the pattern includes star or plus operations, nested in a way that takes a long time for certain data, and row 3024 has that data pattern.</description>
      <pubDate>Tue, 21 Mar 2023 17:33:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Regex-computation-speed-amp-incomplete-formula-run/m-p/615048#M81487</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2023-03-21T17:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: Regex: computation speed &amp; incomplete formula run</title>
      <link>https://community.jmp.com/t5/Discussions/Regex-computation-speed-amp-incomplete-formula-run/m-p/615061#M81489</link>
      <description>&lt;P&gt;Unfortunately, the reason I'm using regex is because the location, and value, of the num() of interest changes within the searched string, but it's formatting stays the same. If I move the regex function to a different line and pass the number(string) retrieved to set each value( num() ) after the row creation to populate the row, the regex() function still has the same issue.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 17:43:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Regex-computation-speed-amp-incomplete-formula-run/m-p/615061#M81489</guid>
      <dc:creator>StarfruitBob</dc:creator>
      <dc:date>2023-03-21T17:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: Regex: computation speed &amp; incomplete formula run</title>
      <link>https://community.jmp.com/t5/Discussions/Regex-computation-speed-amp-incomplete-formula-run/m-p/615066#M81490</link>
      <description>&lt;P&gt;Oh my gosh, this is embarrassing... I took a look at my regex pattern and started to compare with the strings at, and around, row 3024.&amp;nbsp; I think our database needs some fine tuning; the string has no match for the regex pattern in many of these rows.&amp;nbsp; Eek!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for leading me to do this,&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/982"&gt;@Craige_Hales&lt;/a&gt;!&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 17:54:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Regex-computation-speed-amp-incomplete-formula-run/m-p/615066#M81490</guid>
      <dc:creator>StarfruitBob</dc:creator>
      <dc:date>2023-03-21T17:54:56Z</dc:date>
    </item>
  </channel>
</rss>

