Regex-based matching and sustitution with nano?

后端 未结 3 1652
时光取名叫无心
时光取名叫无心 2020-12-17 09:33

I am aware of nano\'s search and replace functionality, but is it capable of using regular expressions for matching and substitution (particularly substitutions

3条回答
  •  孤城傲影
    2020-12-17 10:17

    My version of nano has an option to swtich to regex search with the meta character + R. In cygwin on Windows, the meta-key is alt, so I hit ctrl+\ to get into search-and-replace mode, and then alt+r to swtich to regex search.

提交回复
热议问题