Text processing regex

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?
 

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 799
Благодарностей
1 187
Баллы
113

jack55

Новичок
Регистрация
28.11.2021
Сообщения
2
Благодарностей
0
Баллы
1
Thanks, but that doesn't solve my problem.
 

VladZen

Administrator
Команда форума
Регистрация
05.11.2014
Сообщения
22 413
Благодарностей
5 900
Баллы
113
It seems this task can't be done by regex because of multiple matches.
You should make with C# using matching table.
 

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