L
L
lumb2018-09-12 17:46:02
Regular Expressions
lumb, 2018-09-12 17:46:02

What is the easiest way to replace latin characters in words with cyrillic?

I searched the open spaces, found only services for inverse tasks.
There are (were) unscrupulous copywriters who "uniqueized" articles by replacing similar Cyrillic characters with Latin characters. As a result, I have a lot of articles like

With direct inhalation, oils are inhaled from a bottle, or from a napkin, on which a few drops are applied. This method gives a stronger effect than the aroma smoker.
where in most words 1 letter is replaced by Latin.
so far I could only find a regular expression to find them in the text, but how to automatically replace them (considering that it is necessary to exclude the replacement inside < > so as not to replace characters in different classes, etc. class="img-fluid mx-auto d-block")?
(?<=[A-Za-z])[a-zaei]|[a-zaoi](?=[A-Za-z])

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dollar, 2018-09-12
@dollar

In notepad++ regex - no way.
You will have to replace one character at a time, but in all files at the same time.
There aren't many of them.
eyopac
ETOPAHKCBM Do
n't forget about number 3.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question