Skip to main content

emacs 26.1, windows 10

I hashave some text. I need to replace all text exact before WARN

enter image description here

I use:

  1. query-replace-regexp: .*WARN

  2. query replace regexp: RET

But I need to delete all text BEFORE WARN. How I can do this?

here is the result: enter image description here

emacs 26.1, windows 10

I has some text. I need to replace all text exact before WARN

enter image description here

I use:

  1. query-replace-regexp: .*WARN

  2. query replace regexp: RET

But I need to delete all text BEFORE WARN. How I can do this?

here result: enter image description here

emacs 26.1, windows 10

I have some text. I need to replace all text before WARN

enter image description here

I use:

  1. query-replace-regexp: .*WARN

  2. query replace regexp: RET

But I need to delete all text BEFORE WARN. How I can do this?

here is the result: enter image description here

added 6 characters in body
Source Link
a_subscriber
  • 4.4k
  • 3
  • 25
  • 69

emacs 26.1, windows 10

I has some text. I need to replace all text exact before WARN

enter image description here

I use:

  1. query-replace-regexp: .*WARN

    query-replace-regexp: .*WARN

  2. query replace regexp: RET

    query replace regexp: RET

But I need to delete all text BEFORE WARN. How I can do this?

here result: enter image description here

emacs 26.1, windows 10

I has some text. I need to replace all text exact before WARN

enter image description here

I use:

  1. query-replace-regexp: .*WARN
  2. query replace regexp: RET

But I need to delete all text BEFORE WARN. How I can do this?

here result: enter image description here

emacs 26.1, windows 10

I has some text. I need to replace all text exact before WARN

enter image description here

I use:

  1. query-replace-regexp: .*WARN

  2. query replace regexp: RET

But I need to delete all text BEFORE WARN. How I can do this?

here result: enter image description here

Source Link
a_subscriber
  • 4.4k
  • 3
  • 25
  • 69

How query-replace-regexp for all text exact before specific text?

emacs 26.1, windows 10

I has some text. I need to replace all text exact before WARN

enter image description here

I use:

  1. query-replace-regexp: .*WARN
  2. query replace regexp: RET

But I need to delete all text BEFORE WARN. How I can do this?

here result: enter image description here