Unexpected output in Batch replace all

Started by: spiros1 voices2 posts

A list of replacements was used on the file source-text.txt: File content:
*(/afaistos
*(/agios
*(/agnwn
*(/alh
*(/alios
*(/alis
*(/almos
*(/alukos
*(/alus
*(/arma
In Notepad++ as notepadplusplus-findreplace.txt Then the Python script Plugin was used to batch replace the characters The script:
with open('C:/notepadplusplus-findreplace.txt') as f:
    for l in f:
        s = l.split()
        editor.replace(s[0], s[1])
The output was as expected (notepad-output.txt):
Ἅφαιστοσ
Ἅγιοσ
Ἅγνων
Ἅλη
Ἅλιοσ
Ἅλισ
Ἅλμοσ
Ἅλυκοσ
Ἅλυσ
Ἅρμα
Tried same replacements with EmEditor with batch replace (emeditor-findreplace.tsv). The output was unexpected, i.e.
Ἅφὰὶστὸσ
Ἅγὶὸσ
Ἅγνὼν
Ἅλὴ
Ἅλὶὸσ
Ἅλὶσ
Ἅλμὸσ
Ἅλὺκὸσ
Ἅλὺσ
Ἅρμὰ
Any ideas why this difference? I suspect that replacements might not be done in a linear fashion which is important for this type of conversion. Files here
Hi, not sure if anyone had a chance to see why the replacement behaves in this I way, I just wanted to update that I tried the same replacements with an UltraEdit script, and it worked as expected; so I am guessing there is some sort of bug with EmEditor.

2 posts in this topic