I have notepad++ 5.8.2 and I was trying to remove all lines starting with 'Processed XXXXX total records' where XXXXX is a various number.
I tried to CTRL+H and put 'Processed.$ in Find what selecting Regular Expression and putting blank in Replace with but it doesn't even find those lines Processed. Did I do something wrong in regex expression to find and replace them?
            Asked
            
        
        
            Active
            
        
            Viewed 1.5k times
        
    6
            
            
        - 
                    Try Processed.*$ instead of Processed.$ – Jamby May 05 '14 at 12:09
- 
                    @Luigino, If my answer helped you, please consider accepting it as the correct answer, tks! – Pedro Lobito May 05 '14 at 20:47
4 Answers
4
            This will help you:
- Press CTRL + H
- Select Regular Expressionat the bottom
- Find ^Processed \d+ total records.*?
- Click Replace All
After, you may want to clean all the blank lines:
- Find ^\s*
- Click Replace All
 
    
    
        Pedro Lobito
        
- 94,083
- 31
- 258
- 268
- 
                    '^Processed \d+ total records.*?' worked for me. not sure why '?' is causing problem! – Digital_Reality Mar 29 '20 at 14:54
0
            
            
        Depending on what eol designation you use this will delete the line, and leave no blank line.
^Processed\d+ total records.*$\n or
^Processed\d+ total records.*$\r\n
 
    
    
        C0ppert0p
        
- 634
- 2
- 7
- 23
-1
            
            
        Nevermind,... found it right now... Had just to do .Processed.*$ with Regular Expression and it replaced with blank line then removed blank lines with TextFX integrated plugin
- 
                    Notepad++ has that feature without a plugin, it's under Edit->Line Operation->Remove Empty Lines – Jamby May 05 '14 at 12:24
- 
                    Jamby, not in version 5.8.2 at least...I have only Duplicate current lines, Split lines, Join lines, Move Up Current Line and Move Down Current Line... – Luigino May 05 '14 at 12:27
 
     
    