nano: Search and Replace
1
1 4.6 Search and Replace
1 ======================
1
1 One can search the current buffer for the occurrence of any string with
1 the Search command (default key binding: ‘^W’). The default search mode
1 is forward, case-insensitive, and for literal strings. But one can
1 search backwards by pressing ‘M-B’, search case sensitively with ‘M-C’,
1 and interpret regular expressions in the search string with ‘M-R’.
1
1 A regular expression in a search string always covers just one line;
1 it cannot span multiple lines. And when replacing (with ‘^\’ or ‘M-R’)
1 the replacement string cannot contain a newline (LF).
1