Remove all spaces and tabs from ONLY specified segment line?
I use Notepad++ v8.1.1.
How to find a specific segment and remove all spaces and tabs from ONLY that segment?
E.g. I want to find all "EQD" lines and remove all spaces and tabs from JUST those lines.
Sample data:
EQD+CN+ZMLU XXXXXXX+45GP+++5
NAD+CA+ZMLU:172:ZZZ
LOC+147+0260808::5
FTX+AAA+++ALUMINUM ARTICLES
MEA+WT++KGM:16549
LOC+9+DOHAI:139:6
LOC+11+USSAV:139:6
RFF+BM:1
EQD+CN+ZMLU XXXXXXX+45GP+++5
NAD+CA+ZMLU:172:ZZZ
LOC+147+0260202::5
FTX+AAA+++ALCOHOLIC BEVERAGES
MEA+WT++KGM:27797
LOC+9+JMKIN:139:6
LOC+11+USSAV:139:6
RFF+BM:1
EQD+CN+ZMLUXXXXXXX+45GP+++5
NAD+CA+ZMLU:172:ZZZ
If "EQD" only appears at the beginning of line, the following would work:
Find what: (^EQD\S*)(($)|(\s))
Replace with: $1$3
If you have more than one space/tab per line, you will need to click on Replace All several times.