M
M
Maxim2020-07-23 01:58:11
Notepad++
Maxim, 2020-07-23 01:58:11

Notepad++ replace (.*) with \10 or more. How to arrange?

There is a line:
книга;страница1-строка1;страница2-строка2;

To replace in each block between the semicolon page with page 1 , I use the expression:

(.*);(.*)-(.*);(.*)-(.*); (найти)

\1;\2-3;\2-\5; (заменить)

These search and replace expressions are great when there are less than 4 blocks between quotes (pages). But I need to replace, for example, the following:

книга;страница1-строка1;страница2-строка2;страница3-строка3;страница4-строка4;страница5-строка5;

on the
книга;страница1-строка1;страница1-строка2;страница1-строка3;страница1-строка4;страница1-строка5;


Here, already in the replacement field, it becomes necessary to insert the replacement combination \11 . But this replacement works like this: The value is \1 and 1 is substituted .

How to make the key \10 and more work, and not just from \1 to \9 ?
Maybe you need some kind of shielding or something else to wrap?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Saboteur, 2020-07-23
@MToUCH

${10}from version 6 and above it seems to work.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question