テキストから値を抽出するこんにちは、
抽出することは可能ですか? 550 JMP式を使用して以下のテキストから値を取得し、スクリプトに埋め込むことができます。 全体の形や文字数は変わりますが、 std Pli =同じままになります。
どんな助けでも大歓迎です。
ありがとう、
トマシュ
PP、PPr(標準ウェーハSMM PPr WAL S0782-3、 "Redarect PPr new"レシピ(WE9LDIPのみ))およびUVX all(リダイレクト)を測定することを忘れないでください。
std Pli = 550平均値1 =…(実行/標準=> 5.00)100/120 = 0.8333
DODタップとモニターの下部のみ。
スクリプティングRe:テキストから値を抽出しますこんにちは、
これには、JMPの文字列操作を使用できます。 contains()、Munger()、Substr()、Word()、Words()、Right()、Left()などを読んでください。ここでは、mungerとcontainsを使用して数値を分離しました。 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 ) );
Re:テキストから値を抽出しますJMPでこれを行う多くの方法。 これが1つです:
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);
Re:テキストから値を抽出しますどうもありがとう、すべての提案はうまくいきます。