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 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.
. is very easy to not notice.