Menu

Searching cr/lf not followed by certain text

2009-07-06
2012-11-13
  • Cynthia van Boven

    Morning,

    I want to search and replace any cr/lf not followed by '730'. I tried it like this

    \r\n[^7]

    in regular expression mode. When I search for

    \r\n7

    I find all occurences I not want to replace so I thought I was using a complementary search in my first example. Does anyone know how to do this.

    Thanks,

    Cynthia

     
    • cchris

      cchris - 2009-07-06

      Search for ^[^7] (ie lines not starting with "7")

      CChris

       
MongoDB Logo MongoDB