This is what I want the script to do
<com style="h1"><font style="b"><num>8:6</num>RULES OF CONSTRUCTION</font></com>
<com style="h2"><font style="b"><num>(a)</num>A Paten</com>
<com style="h3"><font style="i"><num>(i)</num>A Paten</com>
become
<com style="h1"><font style="b"><num>8:6</num>RULES OF CONSTRUCTION</font></com>
<com style="h2"><font style="b">8:6<num>(a)</num>A Paten</com>
<com style="h3"><font style="i">8:6 (a)<num>(i)</num>A Paten</com>
I already got my search part works, but i don't know how to store the search results into a variable.
UltraEdit.perlReOn(); /* Let's use UE's own regexp syntax */
UltraEdit.activeDocument.findReplace.regExp = true;
UltraEdit.activeDocument.findReplace.replaceAll = false;
UltraEdit.activeDocument.top();
var regexType = UltraEdit.regexMode;
UltraEdit.activeDocument.findReplace.find("<com style=\"h1(.*?)<num>(.*?)<\\/num>");
var h1 = \\1; <-- doesn't work
var h2 = \\2;
Can someone help me on this issue?
The reason I need to store the group reference is because I need to run another search and insert the value I found from first search into second search.
I am using Version 17.30.0.1002
Thank you

