Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Notepad++ replace question

Options
  • 18-12-2007 2:50pm
    #1
    Closed Accounts Posts: 1,788 ✭✭✭


    Hi
    I know there is another symbol for a newline char,
    so if i have a huge list
    a
    b
    c
    d
    .
    .
    .

    but want that to become a b c d . . . . .

    i can do a simple replace "newline char" with a space,
    but i can't remember what it is ?
    \n doesn't work ..

    anyone know ?


Comments

  • Closed Accounts Posts: 140 ✭✭Sneaky_Russian


    Ctrl + a (select all)

    then

    Ctrl + j (join lines)


  • Registered Users Posts: 2,082 ✭✭✭Tobias Greeshman


    Could it be you need to use \r\n (cr + lf), instead of just \n in the regex?

    I've never used notepad++, so it's just a guess.


  • Moderators, Technology & Internet Moderators Posts: 1,335 Mod ✭✭✭✭croo


    @jackdaw
    I remember if I transfer a file from dos to unix the dos file has a ^M (Ctrl-M) as a line end ... is this what you are thinking of?


Advertisement