Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use Regex to move everything onto one line in notepad++

I'm trying to figure out how to use Regex to merge the contents of my text file

(25 lines of data) into one line.

So far, I can get Notepad++ to successfully find the lines I'm looking for by making it search for (^) , but what I'm unsure of is what is what to replace it with.

Syntax-wise I'm looking for the correct script that essentially attaches the beginning of one line to the end of the previous one. Can anyone help? Thanks

like image 597
user3153443 Avatar asked Apr 07 '14 13:04

user3153443


People also ask

Can I use regex in Notepad?

Using Regex to find and replace text in Notepad++ In all examples, use select Find and Replace (Ctrl + H) to replace all the matches with the desired string or (no string). And also ensure the 'Regular expression' radio button is set.


1 Answers

Find \R and replace with empty string.

\R matches multiple linebreak styles, including most common \r\n and \n.

Search Mode must be set to Regular expression.

like image 133
user694733 Avatar answered Sep 18 '22 23:09

user694733