Text processing regex

  • Автор темы Автор темы jack55
  • Дата начала Дата начала

jack55

Новичок
Регистрация
28.11.2021
Сообщения
2
Реакции
0
Баллы
1
I want to change the searched month names to digital values and put them to variable, but that doesn't work in zenno.

Example:
list of searched months:

august
september
november
etc


find: (august)|{september)|(november)...etc
replace: (?{1}08)(?{2}09)(?{3}11)...etc

The result in variable is: (?{1}08)(?{2}09)(?{3}11) instead of: 08 or 09 or 11.

It works with notepad ++.How around this?
 
Thanks, but that doesn't solve my problem.
 
It seems this task can't be done by regex because of multiple matches.
You should make with C# using matching table.
 

Кто просматривает тему: (Всего: 0, Пользователи: 0, Гости: 0)