begining and end of line
-
Hello
i have some lines in different text files which begin by Langue:by ewample in a file
Langue: somethingin an other
Langue: other words
so in each text file i g
i would find all the end of lines which begin by Langue:… and copy under a second lineto get as result
Langue: something
Titre:or
Langue: other words
Titre:How to copy a text after a line which begin by a selected word?
thanks
-
Regular expressions (read about them) can do it:
Find what zone:
(?-s)^word1.*\R
Replace with zone:$0word2\r\n
Match case checkbox: your choice if you need it ticked or not
Search mode:Regular expression
-
@Scott-Sumner said:
Find what zone: (?-s)^word1.*\R
Replace with zone: $0word2\r\n
Match case checkbox: your choice if you need it ticked or not
Search mode: Regular expressionthanks scott works perfectly