I have a file and i want to add quotes around every word for example hello becomes "hello" So far i have tried this in emacs:
M-x query-replace-regexp [a-z]+ RET "\1" y
But it just deletes the word and leaves quotes.
This is what you want:
M-x query-replace-regexp \(\<\w+\>\) RET "\1" y
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With