Regex Match & replace

Robejon

Пользователь
Регистрация
11.11.2017
Сообщения
40
Благодарностей
4
Баллы
8
I need some text matched and replaced . However I could not find a real help file...
This is the Regex I have
Find Matches:
(?m:(.*Lottery)(.*PM)\s+(1st.*Prize.*\/\-)(\s+)(\d+)\s+(2nd.*Prize.*)((\n[0-9]+.*){20})\s+)

Replace with
$1\nTime:$2\n\n$3\n$5\n\n$6$7\n--------------------------------\n

I can do the first part...that is matching.. but does not have a clue how to replace..
Kindly help
Thanks
 

lokiys

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

Robejon

Пользователь
Регистрация
11.11.2017
Сообщения
40
Благодарностей
4
Баллы
8
What I meant is .. I know how to replace.. but I dont know how to implement that in zenno ?
Can you give any simple template as an attachment so that I can check the proper method of doing it ?
Thanks
 

lokiys

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

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