I'm using regular expressions in JMP Recode's "Replace String" function to transform strings like "en127" into "1270". My approach is to capture the two digits using:
<SPAN>Find: en(\d+)</SPAN>
Ma quando provo a usare:
<SPAN><SPAN class="hljs-section">Replace: \10</SPAN></SPAN>
…viene interpretato come un riferimento al gruppo 10 , non al gruppo 1 seguito da uno "0" letterale .
Is there a way in JMP to aaggiungere un letterale"0"(o qualsiasi cifra letterale) dopo un gruppo di cattura wsenza che venga interpretato erroneamente come un gruppo con un numero più alto?
Other engines (like Perl or JavaScript) let you disambiguate with braces or dollar signs (e.g., ${1}0), but JMP doesn't seem to support those.
Preferirei una soluzione in un unico passaggio, non una che richiede una seconda operazione di sostituzione.
Avete qualche suggerimento su come farlo in modo pulito in JMP?
Grazie!