A
A
Apfelsaft2020-04-26 16:40:19
Regular Expressions
Apfelsaft, 2020-04-26 16:40:19

How to use regular expressions in Notepad to rearrange the number% to the end of the line?

For example, there is the following text:
The Board of Directors of the Bank of Russia decided to cut the rate to 5.5%, the regulator says in a message.
It needs to be like this:
The Board of Directors of the Bank of Russia decided to cut the rate to 5.5%, the regulator says (tab) 5.5
That is, you need to find an indication of "before", the decimal part must be at the end with an exact

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dodo512, 2020-04-26
@dodo512

Find: (?-s)(до (\d+),(\d+)%.+)
Replace: $1\t$2.$3
https://regex101.com/r/ETue7F/1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question