begining and end of line



  • Hello
    i have some lines in different text files which begin by Langue:

    by ewample in a file
    Langue: something

    in 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 line

    to 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



  • @Pouemes44

    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 expression

    thanks scott works perfectly


Log in to reply