Tell me how to remove pieces of text marked with ##start## and ##end## markers from a text file. Heard notepad ++ understands regular expressions, can anyone be familiar and tell you how and what?

  • By the way, can someone else tell me how to do this in notepade ++! - Funaki

4 answers 4

This is more convenient:

 ##start##.*?##end## 
    1. Open the Replace window
    2. Enter the regular expression ##start##.*?##end## in the Search field
    3. Specify Search Mode - Регуляр. выражен. Регуляр. выражен. and и новые строки
    4. Click Search Next.

       ##start##(.*)##end## 
      • one
        And what this regular expression will remove from the text? ## start ## value 1 ## end ## other ## start ## value2 ## end ## And is this removal true? - ReinRaus
      • something does not work (: - Funaki pm
      • I understand it is necessary to do it through the "Replace" in find write ## start ## (. *) ## end ## and in the "Replace" I write nothing but the line is not found - Funaki

      It may be too late, but it worked out right for me:

       ##start##[^#]*##end## 
      • Wrong. Here in this text nothing will be deleted at all. ## start ## value 1 #comment ## end ## Here is the correct expression for the desired effect. ## start ##. *? ## end ## - ReinRaus