regexnotepad++

Find LF (line feed) in notepad++


Hi can find a line that ended with LF (line feed) in notepad++ ? I only want to find a line that ended with LF without CR. Example on below, the search should only return the line 15xxxxxKL office staff.

Sample


Solution

  • You can search this with a regex like ^[^\r\n]*\n.

    However, according to this answer, the ability to use \n in regular expression mode was introduced in Notepad++ 6.0. Before this version, you'd have to use the extended search mode (where you can not use a regex).