Extraer un valor del textoHola,
¿Es posible extraer el 550 valor del texto a continuación usando la fórmula JMP que luego pude incrustar en el script. La forma general y el número de caracteres cambiarán, pero la expresión de std Pli = seguirá siendo el mismo.
Cualquier ayuda será muy apreciada.
Gracias,
Tomasz
PP, PPr (no se olvide de medir la oblea estándar SMM PPr WAL S0782-3, receta "Redarect PPr new" (SOLO en WE9LDIP)) y UVX all (redireccionamiento), y ejecutar en click vale para información de discrepancia, Final PP
std Pli = 550 valor medio1 =… (Run / Std => 5,00) 100/120 = 0,8333
DOD tap y bottom en el monitor solamente.
ScriptingRe: extraer un valor del textoHola,
Puede usar las operaciones de cadena de JMP para esto. Lea sobre Contiene (), Munger (), Substr (), Palabra (), Palabras (), Derecha (), Izquierda (), etc. Aquí he usado munger y contiene para aislar el número. La función num () cambia la cadena encontrada, "550" en el número 550.
Salud,
Brady
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: extraer un valor del textoMuchas formas de hacer esto en JMP. Acá hay uno:
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);
Además, si sabe cómo usar regex, podría usar eso:
regex_result = Regex(str, "(std Pli = )(\d+)", "\2");
Show(regex_result);
Re: extraer un valor del textomuchas gracias, todas las sugerencias funcionan bien.