How to join the rows with notepad?



  • I mean, how can I get from this:

    tony:
    av petit
    mary:
    2345678
    freddy:
    piso23
    james:
    @mail

    a result like this:

    tony:av petit
    mary:2345678
    freddy:piso23
    james:@mail



  • @kikenetxy-giga

    I might try a regular expression (search mode!) replacement:

    Search for: (?-s)(.+)\R(.+)

    and Replace with: \1\2



  • Hello, @kikenetxy-giga, and All,

    Elementary !

    • Open The Replace dialoag ( Ctrl + H )

    • SEARCH :\R

    • REPLACE :

    • Tick the Wrap around option, if necessary

    • Select the Regular expression search mode

    • Click once on the Replace All button or several times on the Replace button

    Notes :

    • The \R regex syntax search any kind of Line-Break ( \r\n in Windows files, \n in Unix files and \r in Mac files )

    • So the search regex looks for a colon :, ending a line

    Best Regards,

    guy038


Log in to reply