[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Help with a (query) replacement
From: |
Alain . Cochard |
Subject: |
Re: Help with a (query) replacement |
Date: |
Sat, 12 Nov 2022 16:31:04 +0100 |
Ypo writes on Sat 12 Nov 2022 15:42:
> Hi
>
> I am copy-pasting e-books into org-mode to read and study them.
>
> Usually, words come hyphenated, like "ato- mized", that I wanted to
> transform into "atomized".
>
> I am trying with query replace, but I am starting to think that it is
> not the correct tool for this job.
> I tried "query-replace [a-z]-" but I don't know how to exclude the
> letter before the "-".
I don't really understand the thing with e-books but as for
transforming "ato- mized" (or "ato-mized") into "atomized", how about
something like
query-replace-regex
\([a-z]\)-[[:blank:]]*\([a-z]\)
\1\2
--
EOST (École et Observatoire des Sciences de la Terre)
ITE (Institut Terre & Environnement) | alain.cochard@unistra.fr
5 rue René Descartes [bureau 110] | Phone: +33 (0)3 68 85 50 44
F-67084 Strasbourg Cedex, France | [ slot available for rent ]