- AuthorPosts
- May 18, 2023 at 6:25 am #29246spirosParticipant
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
May 18, 2023 at 6:31 am #29247spirosParticipantThe error I get is “The regular expression contains a back-reference to a non-existent marked sub-epxression”
May 19, 2023 at 8:32 am #29252Yutaka EmuraKeymasterIs 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.
- AuthorPosts
- You must be logged in to reply to this topic.