[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Query replace question
From: |
Eric Abrahamsen |
Subject: |
Re: Query replace question |
Date: |
Thu, 17 Mar 2022 07:40:20 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Robert Pluim <rpluim@gmail.com> writes:
>>>>>> On Thu, 17 Mar 2022 12:19:52 +0100, Ergus <spacibba@aol.com> said:
>
> Ergus> Hi:
> Ergus> I am wondering if there is some functionality in vanilla to enable
> Ergus> dynamic match highlight during query replace or query-replace regex
> Ergus> while composing the regex? Similar to isearch lazy highlight,
> Ergus> regex-highlight or re-builder; but for query-replace and the rest
> of the
> Ergus> replace family?
>
> You can search with isearch and then switch to query-replace with M-%
> from within isearch.
There's also re-builder, which is interactive. It can sort of serve as a
replacement for `isearch-forward-regexp', or you can copy the regexp
once you've got it right, and use it in regexp replace.