Estrai la stringa che contiene numeri positivi e negativiCIAO,
Ho un file table1.jmp come allegato. Come faccio a estrarre i valori X e Y cerchiati nel riquadro rosso? I valori X e Y possono talvolta essere negativi. Ad esempio, i valori XY della prima riga sono -280, -396. I valori XY della seconda riga sono 284, -228.

Automazione e scriptingRe: Estrai stringa contenente numeri positivi e negativiQuesta è una domanda difficile. Qualche consiglio saggio?
Re: Estrai stringa che contiene numeri positivi e negativiEcco le formule che faranno ciò che vuoi
// For the X value
Num( Substitute( Word( 5, Substitute( :Fname, "--", "-&" ), "-" ), "&", "-" ) )
// For the Y value
Num( Substitute( Word( 6, Substitute( :Fname, "--", "-&" ), "-" ), "&", "-" ) )

Re: Estrai stringa che contiene numeri positivi e negativiAnche Regex può essere un'opzione ( https://regex101.com/r/5fgzrx/1 per una spiegazione parziale su come funziona)
Num(Regex(:Fname, "-(-?\d{3})-(-?\d{3})", "\1"))
cambia "\1" in "\2" per Y
