K
K
Konstantin Melnikov2021-11-15 12:54:36
Regular Expressions
Konstantin Melnikov, 2021-11-15 12:54:36

How to replace text in Notepad++ so that each replacement ends with a unique character or set of characters?

In a huge text file, there are many lines that contain a piece of text like this:

[$gameVariables.value(111)][72] = '日本語のテキスト'

You need to replace all such text with something like

[$gameVariables.value(111)][72] = 'New text'

But so that each replaced text is at least somehow different from the previous one. That is, to be unique. For example:

[$gameVariables.value(111)][72] = 'New Text 1'
[$gameVariables.value(111)][72] = 'New Text 2'
[$gameVariables.value(111)][72] = ' New text 3'

[$gameVariables.value(111)][72] = 'New text a'
[$gameVariables.value(111)][72] = 'New text b'
[$gameVariables.value(111)][72] = ' New text c'

[$gameVariables.value(111)][72] = 'New text +'
[$gameVariables.value(111)][72] = 'New text ++'
[$gameVariables.value(111)][72] = 'New text +++'

Digital values ​​+1, as I understand it, Notepad cannot count. But maybe it can be implemented in some other way? Or perhaps a completely different program should be used for this purpose?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question