0

I have a document with multiple terms contained within quotations ("). For example, "1" 2 "3". I'd like to find and replace (^W, ^R) only the terms inside quotations. In my example, I'd like to find/replace "1" and "3".

I imagine I'd use a wildcard operator but cannot find one within nano.

How can I accomplish this goal? Thanks!

Charles Duffy
  • 235,655
  • 34
  • 305
  • 356
Benjamin C
  • 301
  • 1
  • 7
  • There's no such thing as "bash nano". nano is not part of bash -- it can be run without even having bash installed. – Charles Duffy Dec 24 '17 at 06:49
  • (also, nano is an *extremely* limited-capability editor, designed for simplicity above all else; it may have regex support, but if it doesn't, I wouldn't be surprised -- consider learning emacs or vim). – Charles Duffy Dec 24 '17 at 06:50

1 Answers1

0

Begin an instance of "search and replace" with Ctrl + \ and then enable regex with alt+r.
Enter the expression of what you'd like to replace (use your favorite search engine to learn more about regex or even check your work with regex101).

A lot of people tend to hate on nano, but I've yet to encounter a moment where it couldn't do what vim/emacs could do in terms of editing. Learn what you can from all of them, use your favorite.