A
A
Artyom2018-09-23 11:30:42
Regular Expressions
Artyom, 2018-09-23 11:30:42

How to remove line break before certain notepad++ character?

Hello, there was a problem with the base, it now looks like this:
question 1
: answer 1
question 2
: answer2
question 3
: answer3
How can I use a regular expression or tools to carefully remove the line break before the characters: remove the line break so that the base looks like this:
question 1: answer1
question 2:answer2
question 3:answer3
Googled, did not find anything specifically on my problem

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
dodo512, 2018-09-23
@fishmen

Search pattern \r?\n:
Replacement string :
https://regex101.com/r/zV0DEE/1

S
Stanislav Kucher, 2022-01-26
@stasok86

It can be simpler - ctrl + a and then ctrl + j

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question