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 中乾淨地完成此操作,您有什麼見解嗎?
謝謝!