Answer the question
In order to leave comments, you need to log in
How to make this regular expression for notepad++?
Good morning, guys.
There are lines in Notepad:
11111111111111
2222222222222
33333333333333
44444444444444
55555555555555
66666666666666
3333333 3333333;
44444444444444
3333 333 3333333;
44444444444444
33 3 3 3333 3333 33;
44444444444444
3 3 3 3 3 3 3 3 3 3 3 3 3 3;
44444444444444
Answer the question
In order to leave comments, you need to log in
Search for (\d+)\r\n(\d+\r\n\r\n)
Replace with \1;\r\n\2
If there is something else besides numbers, then replace \d with .
Put the last semicolon by hand
Your task is much easier to formulate:
You need to insert ; at the end of every line following an empty line.
I think this problem can be solved with a macro:
1. Enter ^\R into the search and check the box "Regular expression", uncheck the loop search checkbox.
2. Macros - start recording.
3. End - ; - F3
4. Macros - stop recording
5. Get on the first line. Macros - multiple launch. Execute to the end of the file. Launch
Everything, you will be happy.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question