help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Replace all occurrences of a specific character with another.


From: Michael Heerdegen
Subject: Re: Replace all occurrences of a specific character with another.
Date: Sun, 23 Jul 2023 04:18:42 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

Hongyi Zhao <hongyi.zhao@gmail.com> writes:

> Hi here,
>
> I want to replace all occurrences of a specific character, say, `d`,
> as shown in the attached screenshot, with another character, e.g.,
> `n`. Is there any practical way to do this?

The screenshot shows something different.  I answer the screenshot:

Depending on the mode, start isearching using word or symbol mode (M-s
w, M-s _) enter you search term and then M-% to query-replace the word or
symbol.

"Depending" means it depends on the syntax table of the current mode if
that is exactly what you want, or more, or less matches.  And if I
guessed correctly what you want.

Michael.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]