從文本中提取值你好,
是否可以提取550使用JMP公式從下面的文本中提取值,然後我可以將其嵌入腳本中。 字符的整體形狀和數量將發生變化,但標準Pli =將保持不變。
任何幫助將不勝感激。
謝謝,
托馬斯
PP,PPr(不要忘記測量標準晶圓SMM PPr WAL S0782-3,“重新進行PPr新”配方(僅在WE9LDIP上))和UVX全部(重定向),然後單擊vale運行以獲取不匹配信息,最終PP
標準Pli = 550平均值1 =…(運行/標準=> 5.00)100/120 = 0.8333
只能在顯示器上輕按DOD。
腳本編寫回复:從文本中提取值你好,
您可以為此使用JMP的字符串操作。 繼續閱讀Contains(),Munger(),Substr(),Word(),Words(),Right(),Left()等。在這裡,我使用了munger並包含要隔離的數字。 num()函數將找到的字符串“ 550”更改為數字550。
乾杯,
布雷迪
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 = >5.00) 100 / 120 = 0.8333
DOD tap and bottom on monitor only.]\";
beg = Contains( txt, "std Pli = " ) + 9;
end = Contains( txt, " ", beg + 1 );
val = Num( Munger( txt, beg, end - beg ) );
回复:從文本中提取值在JMP中有很多方法可以做到這一點。 這是一個:
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 = >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);
另外,如果知道如何使用正則表達式,則可以使用:
regex_result = Regex(str, "(std Pli = )(\d+)", "\2");
Show(regex_result);
回复:從文本中提取值非常感謝,所有建議都行之有效。