Menu

searching for newline

Wolfkin
2009-04-23
2012-11-13
  • Wolfkin

    Wolfkin - 2009-04-23

    ====
    {

         Font-size

    I want to remove the extra carriage return so it looks like this

    ====
    {
         Font-size
    ====

    I tried to use the extended search mode which seemed to work on a similar problem but searching yields no hits.

    "{\n\n" = 0
    "{" hits
    "\n" = 0

     
    • cchris

      cchris - 2009-04-24

      There is a wiki article about replacing end of lines, you may want to read it before posting.

      Basically, to match \r or \n at end of line, you need to match [^@] at the right place, where '@' is any character of your choice. It may help if you choose something that you are sure is not in your text - I like using control characters for this purpose.

      Beware that end of line is made of 2 characters on DOS/Windows and 1 elsewhere.

      CChris

       
MongoDB Logo MongoDB