<?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 a value from text in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Extract-a-value-from-text/m-p/384612#M63500</link>
    <description>&lt;P&gt;Many ways to do this in JMP. Here is one:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

str = "\[PP, PPr (don’t forget to measure standard wafer SMM PPr WAL S0782-3, "Redarect PPr new" recipe (On WE9LDIP ONLY)) and UVX all (redirect), and run on click vale for mismatch info, Final PP
std Pli = 550 average value1 = … (Run/Std = &amp;gt;5.00) 100 / 120 = 0.8333
DOD tap and bottom on monitor only]\";
searchString = "std Pli = ";

//substr
firstSplit = Substr(str, Contains(str, searchString) + Length(searchString));
substr_result = Substr(firstSplit, 1, Contains(firstSplit, " ") - 1);
Show(substr_result);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also if know how use regex you could use that:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;regex_result = Regex(str, "(std Pli = )(\d+)", "\2");
Show(regex_result);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 12 May 2021 16:40:18 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2021-05-12T16:40:18Z</dc:date>
    <item>
      <title>Extract a value from text</title>
      <link>https://community.jmp.com/t5/Discussions/Extract-a-value-from-text/m-p/384563#M63493</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Is it possible to extract the &lt;STRONG&gt;&lt;EM&gt;550&lt;/EM&gt;&lt;/STRONG&gt; value from the text below using JMP formula that i could then imbedded into script. The over all shape and number of characters will change but the expression of&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;std Pli =&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;will stay the same.&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tomasz&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PP, PPr (don’t forget to measure standard wafer SMM PPr WAL S0782-3, "Redarect PPr new" recipe (On WE9LDIP ONLY)) and UVX all (redirect), and run on click vale for mismatch info, Final PP&lt;BR /&gt;std Pli = &lt;EM&gt;&lt;STRONG&gt;550&lt;/STRONG&gt;&lt;/EM&gt; average value1 = … (Run/Std = &amp;gt;5.00) 100 / 120 = 0.8333&lt;BR /&gt;DOD tap and bottom on monitor only.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 19:46:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Extract-a-value-from-text/m-p/384563#M63493</guid>
      <dc:creator>swiergi11</dc:creator>
      <dc:date>2023-06-09T19:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: Extract a value from text</title>
      <link>https://community.jmp.com/t5/Discussions/Extract-a-value-from-text/m-p/384608#M63498</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use JMP's string operations for this. Read up on Contains(), Munger(), Substr(), Word(), Words(), Right(), Left(), etc. Here I've used munger and contains to isolate the number. The num() function changes the string found, "550" into the number 550.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Brady&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

txt =
"\[PP, PPr (don’t forget to measure standard wafer SMM PPr WAL S0782-3, "Redarect PPr new" recipe (On WE9LDIP ONLY)) and UVX all (redirect), and run on click vale for mismatch info, Final PP
std Pli = 550 average value1 = … (Run/Std = &amp;gt;5.00) 100 / 120 = 0.8333
DOD tap and bottom on monitor only.]\";

beg = Contains( txt, "std Pli = " ) + 10;
end = Contains( txt, " ", beg );
val = Num( Munger( txt, beg, end - beg ) );
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 12 May 2021 16:37:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Extract-a-value-from-text/m-p/384608#M63498</guid>
      <dc:creator>brady_brady</dc:creator>
      <dc:date>2021-05-12T16:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: Extract a value from text</title>
      <link>https://community.jmp.com/t5/Discussions/Extract-a-value-from-text/m-p/384612#M63500</link>
      <description>&lt;P&gt;Many ways to do this in JMP. Here is one:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

str = "\[PP, PPr (don’t forget to measure standard wafer SMM PPr WAL S0782-3, "Redarect PPr new" recipe (On WE9LDIP ONLY)) and UVX all (redirect), and run on click vale for mismatch info, Final PP
std Pli = 550 average value1 = … (Run/Std = &amp;gt;5.00) 100 / 120 = 0.8333
DOD tap and bottom on monitor only]\";
searchString = "std Pli = ";

//substr
firstSplit = Substr(str, Contains(str, searchString) + Length(searchString));
substr_result = Substr(firstSplit, 1, Contains(firstSplit, " ") - 1);
Show(substr_result);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also if know how use regex you could use that:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;regex_result = Regex(str, "(std Pli = )(\d+)", "\2");
Show(regex_result);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 16:40:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Extract-a-value-from-text/m-p/384612#M63500</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2021-05-12T16:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: Extract a value from text</title>
      <link>https://community.jmp.com/t5/Discussions/Extract-a-value-from-text/m-p/384843#M63519</link>
      <description>&lt;P&gt;thanks a lot, all suggestions works well.&lt;/P&gt;</description>
      <pubDate>Thu, 13 May 2021 16:00:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Extract-a-value-from-text/m-p/384843#M63519</guid>
      <dc:creator>swiergi11</dc:creator>
      <dc:date>2021-05-13T16:00:24Z</dc:date>
    </item>
  </channel>
</rss>

