M
M
mikushka2022-01-19 20:30:33
Regular Expressions
mikushka, 2022-01-19 20:30:33

Find and replace in notepad++ with sequential counter?

task:
you need to replace the tags in the .xml file <title>.*</title>with tags

<title>(с увеличивающимся числом с каждой заменой от 1)</title>

(.*) - there can be any words between titles. It is

necessary to replace:
<title>.*</title> (can be as many as you like)
with:
<title>i</title>
where i is a number that increases with each replacement.
It should look like this:
<title>1</title>
<title>2</title>
<title>3</title>
etc. depending on the number of replacements

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