Having said that, I couldn't work out how to do it in one step - the restrictions on what works are too great. I did it like this:
1. Start the advanced find/replace (control R)
*Without* regex search for control-M and replace with a single space through the whole file.
2. Now turn *on* regex and search for (:..) (....-) and replace with \1 control-M \2
Suppose I have the following:
2007-02-09 09:34:34
Company
30009
2007-02-09 09:57:50
and want it to look like:
2007-02-09 09:34:34 Company 30009 2007-02-09 09:57:50
How do I search for the linebreaks and replace it with a backspace to look as I want it to?
Thanks in advance?
Hello,
How to replace tab from a line to linebreak ?
Tks,
Mike
"How to replace tab from a line to linebreak?"
Use advanced find/replace (control+R) with regex turned off. Replace control+I with control+M. There might be other ways, but that works for me.
As you've probably found, there's a "bug" that makes searching for newlines tricky. Have a read of http://notepad-plus.sourceforge.net/uk/newlineFindReplace-HOWTO.php for the various methods that allow it. You'll need to replace them with nothing, not a backspace.
Having said that, I couldn't work out how to do it in one step - the restrictions on what works are too great. I did it like this:
1. Start the advanced find/replace (control R)
*Without* regex search for control-M and replace with a single space through the whole file.
2. Now turn *on* regex and search for (:..) (....-) and replace with \1 control-M \2
The regex FAQ is at http://notepad-plus.sourceforge.net/uk/regExpList.php if you're not familiar with it and want to understand how the second step works.
Anyone else work out a better way?