Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #28576
    spiros
    Participant

    I am trying both bulk and batch replace with a linked file. The linked file contents is 2 columns like this:

    (?<!\[)ὥρη(?!\]) [[ὥρη]]
    (?<!\[)ἥρῳ(?!\]) [[ἥρῳ]]

    That is, find any such word if it is not followed by ] or preceded by [ and then create a [[wikilink]].

    When I run this regex I get:
    The regular expression contains a back-reference to a non-existent marked sub-expression

    There is no problem when I run the regex normally from the find/replace dialog.

    #28579
    Yutaka Emura
    Keymaster

    I couldn’t reproduce the issue. Which version of EmEditor are you using? Are you using the default regex engine (Boost.Regex)? Did you make any changes in the Advanced dialog box?

    #28587
    spiros
    Participant

    v. 21.9.915
    default regex engine (Boost.Regex)
    No changes in the Advanced dialog box

    2022-10-05-191852

    #28595
    Yutaka Emura
    Keymaster

    Is your linked file saved as UTF-8?

    #28598
    spiros
    Participant

    UTF-8 without signature, as the file in the screen

    #28599
    Yutaka Emura
    Keymaster

    Please email me all your files after zipped so I will look into the issue.

    #28605
    spiros
    Participant

    You can download from here

    #28608
    Yutaka Emura
    Keymaster

    I downloaded your files and tested, but I still couldn’t reproduce the issue.

    #28617
    spiros
    Participant

    I guess you have defined as conditions CR on the linked replacements file.

    #28618
    Yutaka Emura
    Keymaster

    I did exactly the same way as the screenshot shows — “CR @”.
    I don’t believe it’s an issue, but can you please try saving both your sample and linked file as UTF-16 with BOM, and see if you can still reproduce the issue?

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.