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>
しかし、使用しようとすると:
<SPAN><SPAN class="hljs-section">Replace: \10</SPAN></SPAN>
…これは、グループ 1 の後にリテラル「0」が続くのではなく、グループ 10への参照として解釈されます。
Is there a way in JMP to aリテラルを追加する"0"(または任意のリテラル数字)キャプチャグループの後wより大きな番号のグループとして誤解されることなく?
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.
2 回目の置換操作を必要とするソリューションではなく、ワンステップのソリューションを希望します。
JMP でこれをきれいに実行する方法について何か知見はありますか?
ありがとう!