I’m trying to reformat some data that I have that isn’t playing well when I copy text from a pdf.
Cordless
9B12071R
CHARGER, 3.6V,LI-ION
Cordless
9B12073R
CHARGER,NI-CD,FRAMER
Framing / Sheathing tools
F28WW
WIRE COLLATED FRAMIN
Framing / Sheathing tools
N89C-1
COIL FRAMING NAILR
Framing / Sheathing tools
N80CB-HQ
I want to have it formatted like this:
Cordless 9B12071R CHARGER, 3.6V,LI-ION
Cordless 9B12073R CHARGER,NI-CD,FRAMER
....
What I’m trying to do is a find and replace that replaces the first two new lines “\n” with a tab “\t” and leaving the third “\n” in tact.
The first thing I do is replace all “\n” with “\t” which is easy. After that, I want to replace the third “\t” with “\n”. How would I do that using regex?
For EditPadPro, paste this into the
SearchboxPaste this into the
ReplaceboxAnd that should do it. Basically you can add carriage returns and tabs using Ctrl+Enter and Ctrl+Tab in EditPadPro.
I had to add a carriage return to your text in the question as it’s missing the last line I think. All the others are in triples of data.