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
This is more convenient:
##start##.*?##end##
|
- Open the Replace window
- Enter the regular expression
##start##.*?##end##
in the Search field - Specify Search Mode -
Регуляр. выражен.
Регуляр. выражен.
andи новые строки
- Click Search Next.
|
##start##(.*)##end##
- oneAnd 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
|