How to change this regex..??

resz

Client
Регистрация
24.07.2012
Сообщения
61
Благодарностей
3
Баллы
0
I dont know if the title was right..so this is the image..



How can i change the regex to choose the right message that has the confirmation email if im using a differrent site to register..
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 707
Баллы
113
So you wanna create another project for another site or what?
 

resz

Client
Регистрация
24.07.2012
Сообщения
61
Благодарностей
3
Баллы
0
Just running my template again for other site..use get line to choose site randomly from file when starting the template
 

lokiys

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

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 707
Баллы
113
You need to use regex with project variables. Try to use this variable as regex for finding email:

{-Project.Domain-}

Also you can use something like {-Profile.Login-} to find emails with login details.
There are also some premade regex in drop down.

It's only if you create project for similar sites (similar platform)
Every different site needs new project
 
Последнее редактирование:
  • Спасибо
Реакции: resz

resz

Client
Регистрация
24.07.2012
Сообщения
61
Благодарностей
3
Баллы
0
Ok,thanks..will try this..
 

resz

Client
Регистрация
24.07.2012
Сообщения
61
Благодарностей
3
Баллы
0

resz

Client
Регистрация
24.07.2012
Сообщения
61
Благодарностей
3
Баллы
0
You need to use regex with project variables. Try to use this variable as regex for finding email:

{-Project.Domain-}

Also you can use something like {-Profile.Login-} to find emails with login details.
There are also some premade regex in drop down.

It's only if you create project for similar sites (similar platform)
Every different site needs new project
{-Project.Domain-} To use this variable do you mean i have to create variables that load a domain list?
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 707
Баллы
113
This variable will take domain from URL that opened in instance.

For example if you use as regex {-Project.Domain-} it will input this:

twitter.com

If you have http://twitter.com/login opened
 
Последнее редактирование:

lokiys

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

resz

Client
Регистрация
24.07.2012
Сообщения
61
Благодарностей
3
Баллы
0

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 707
Баллы
113
There are two variants for processing: text and HTML. Depends on provider. You can see content of email when you work with it.
 

resz

Client
Регистрация
24.07.2012
Сообщения
61
Благодарностей
3
Баллы
0
I use regex {-Project.Domain-} but when run debug it says no such macro in database.??
is there any same attributes in confirmation url (from different site) that can be used for zp to detect it so i can use the same again for any template for different site..?
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 707
Баллы
113
I misled you )
I was away from PC and hadnt ZP in front of me.
Correct variable:

{-Page.Domain-}
 

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