Regular Expression Issues

Possible duplicate:
Find CRLF in Notepad ++

I am trying to use notepad ++ to easily find and replace regular expressions. But when I try to use the regular expression syntax for the new line (\ r \ n), I get the following error:

cannot find text: "\ r \ n"

\ r \ n works in advanced search and in other text editors, but not in normal search.

Any ideas?

+3
source share
3 answers

Notepad ++ regex does not support multiple lines, so newlines cannot be matched. If you need to find and replace empty strings, you need to use advanced search. , Notepad ++ 6.0, PCRE . . .

+5

Notepad ++:

Notepad ++ Scintilla, SciTE, ( , POSIX , ): http://www.scintilla.org/SciTERegEx.html


SciTE:

, \r \n , Scintilla ( ).

+4

From Notepad ++ original replace options, support for "Extend" \r\n, so you can simply replace each new line with a unique short line that never appeared in your document, for example. abcdefgto create a huge string. Then you can perform the task of replacing regular expressions in the "Regix" mode, try to save a unique tag line, replace it \r\nback using the "Expand" mode, made, uncomfortable and stupid.

+2
source

All Articles