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: Emanuel Berg
Subject: Re: Replace all occurrences of a specific character with another.
Date: Tue, 25 Jul 2023 19:00:37 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

Hongyi Zhao wrote:

> 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?

A loop with `re-search-forward' and `replace-match', see

  https://dataswamp.org/~incal/emacs-init/regexp.el

-- 
underground experts united
https://dataswamp.org/~incal




reply via email to

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