G
G
gitars172020-05-10 06:37:25
Regular Expressions
gitars17, 2020-05-10 06:37:25

How to move part of text to end of line in Notepad++?

Hello, there are lines like
---------------------------------------------------- ---
246: In the fourth chapter I described how Madhavendra Puri installed the Deity of Gopala and how Gopinatha stole a pot of condensed milk at Remun.
------------------------------------------------
As a number at the beginning, move to the end of the line before the period (only so that there is a space between the text and the number in brackets), you need to get this as a result:
---------------------- -----------------------
In the fourth chapter I described how Madhavendra Puri installed the Deity of Gopala and how Gopinatha stole a pot of condensed milk at Remun (246).
-------------------------------------------------
number in brackets can be anything

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
js-newbie, 2020-05-10
@js-newbie

Provided that there is always one dot at the end of the line.
Search:
^(\d+): (.*)[.]{1}$
Replacement:
\2 \(\1\).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question