emacs 26.1, windows 10
I have some text. I need to replace all text before WARN
I use:
query-replace-regexp: .*WARN
query replace regexp: RET
But I need to delete all text BEFORE WARN. How I can do this?
Emacs Stack Exchange is a question and answer site for those using, extending or developing Emacs. It only takes a minute to sign up.
Sign up to join this communityemacs 26.1, windows 10
I have some text. I need to replace all text before WARN
I use:
query-replace-regexp: .*WARN
query replace regexp: RET
But I need to delete all text BEFORE WARN. How I can do this?
To remove the text before WARN
, just enter WARN
as the replacement text. That is, use WARN
as your input to the second prompt.