Unfortunately, it is currently not possible to use RegEx back references in Alignment Overrides.
My use case / feature request: Align file pairs such as:
Desired alignments (example):
fileNameBeg1_1.txt = fileNameBeg1_2.txt
fileNameBeg2_2.txt = fileNameBeg2_7.txt
someOtherName_0.txt = someOtherName_1.txt
Renaming files before comparing or other "preprocessing" is not an option - I need this feature very often in my daily work.
Proposed solution approach (I use this algorithm in an own project):
I think it would be of great use to many users if this would be implemented.
Thanks,
P_e_t_e_r
My use case / feature request: Align file pairs such as:
(.+)_\d\.txt=\1_\d\.txt
where \1 = back reference to (.+)Desired alignments (example):
fileNameBeg1_1.txt = fileNameBeg1_2.txt
fileNameBeg2_2.txt = fileNameBeg2_7.txt
someOtherName_0.txt = someOtherName_1.txt
Renaming files before comparing or other "preprocessing" is not an option - I need this feature very often in my daily work.
Proposed solution approach (I use this algorithm in an own project):
Code:
regExFilePair = (.+)_\d\.txt:\1_\d\.txt // (Example, value taken from user-defined alignment) for all files in folder 1 { for all files in folder 2 { sFilePair = filename1 + ":" + filename2 // (Note: Colon cannot appear in filename) if (sFilePair matches regExFilePair) then file pair is found } }
Thanks,
P_e_t_e_r
Comment