Menu

Regexp over multiple rows

Svinto
2009-06-24
2012-11-13
  • Svinto

    Svinto - 2009-06-24

    When using "extended search" I have no problem searching for strings spanning multiple rows (using \r\n).
    But when using "regular expression" I can't make it work. I've tried searching for "$^" but it doesn't find any matches.

    Is it at all possible to search over multiple rows with regular expressions?
    If not, can the feature be added?

    Btw. Thanks for a wonderful text editor.

     
    • Svinto

      Svinto - 2009-06-24

      Thanks, CChris, for notifying me about TextFX. I didn't know about it before.
      Too bad your solution doesn't work with regexp.

      Also, I found the "newline search and replace FAQ" on the npp site, which clearly states that replacing newlines with regexp can't be done.
      Too bad :(

       
    • cchris

      cchris - 2009-06-24

      Try TextFX -> TextFX Quick -> Find/Replace, using Ctrl+M to mark an end of line.

      CChris

       
MongoDB Logo MongoDB