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>
...它被解释为对组 10 的引用,而不是对组 1 后跟文字“0”的引用。
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.
我更喜欢一步到位的解决方案,而不是需要第二次替换操作的解决方案。
关于如何在 JMP 中干净地完成此操作,您有什么见解吗?
谢谢!