G
G
gitars172020-05-09 11:47:03
Regular Expressions
gitars17, 2020-05-09 11:47:03

How to replace numbers in a document (in notepad++)?

Hello.
Is it possible in the text to find all occurring
. (5)
the number can be anything in brackets
and replace them with
(4).
those. one less and the point is already to the right of the number in brackets (and a space after the point)

And if you can’t subtract, then at least leaving the number itself in brackets rearrange it to the left of the point (the number can be any - from zero to 9999, etc.). P.)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
Timur Pokrovsky, 2020-05-09
@Makaroshka007

https://regexr.com/5488t
\.\((\d+)\)
($1).

D
dodo512, 2020-05-09
@dodo512

\. *(\(\d+\))
$1.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question