Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #29246
    spiros
    Participant

    I am trying to create a batch replacement with a linked file. For example my source file is like this (I use [tab] to indicate an actual tab instance):

    test[tab]this is some more text
    this is a test[tab]this is some more text
    this test is here[tab]this is some more text

    Now I want to run the replacement

    test[tab]test|condition

    But only make a change indicated in line 1 (test[tab]this is some more text) and leave the other instances of “test” untouched.
    I tried in the linked file to use

    ^test\t[tab]test|condition

    And then used the Regex option in the linked file, but I got a syntax error.

    The desired result would be to change line 1 to
    test|condition[tab]this is some more text

    #29247
    spiros
    Participant

    The error I get is “The regular expression contains a back-reference to a non-existent marked sub-epxression”

    #29252
    Yutaka Emura
    Keymaster

    Is it Batch Replace or Batch Replace in Files?

    In linked files, [tab] means a separator between find and replace strings. What exactly is “\t[tab]”? Please send me all sample files (after zipped) and procedure to reproduce the issue so that I can test your case on my computer. Please contact us if you don’t know where to send your files.

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