Answer the question
In order to leave comments, you need to log in
What regular expression can be used to replace the same characters, except for the first one?
I'm trying to complete the task in sublime text, but any solution will do.
There is a dictionary of synonyms for the species
контура|силуэта|абриса|профиля
контурам|силуэтам|абрисам|профилям
контурами|силуэтами|абрисами|профилями
контурах|силуэтах|абрисах|профилях
контуре|силуэте|абрисе|профиле
контура|силуэта,абриса,профиля
контурам|силуэтам,абрисам,профилям
контурами|силуэтами,абрисами,профилями
контурах|силуэтах,абрисах,профилях
контуре|силуэте,абрисе,профиле
Answer the question
In order to leave comments, you need to log in
Not every regexp engine can do it with one regexp.
for example, this: https://regex101.com/r/zvs6Nq/1 works in chrome, but not in firefox.
it is probably easiest for you to do it in several passes - to drive the replacement of the second stick in a row until they stop being replaced.
https://regex101.com/r/zvs6Nq/3/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question