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
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login