Multiple emails from 1 website - regex for identification issue

madsem

Client
Регистрация
27.10.2011
Сообщения
66
Благодарностей
11
Баллы
0
Hey guys,

atm I'm facing a wierd issue, I'm building a universal template that will work for all websites using the same platform.
Now some of the websites send their confirmation emails in text format, others in html and then again some send multiple emails.

And in the case of multiple emails, somehow I'm having trouble finding the right regex to match multiple things in the email header so zenno finds only 1 email...

For example I have 3 emails:

1. Welcome to the website
2. Your login data
3. Please activate your account

The confirmation link is in email #3, when I test my regex in the regular expression builder it work but then in debug mode not.

My regex is: (?<=Message-ID: \<.*@).*{-FieldData.FieldData-|-●1●5●7●2●3●5●-|-≡1≡6≡4≡4≡1≡4≡0≡1≡9≡0≡-}.*(?=\>)(?=Subject:.*activation.*|.*activate.*|.*confirm.*)
(The field data contains the domain of the website) so the match is supposed to work like:

match email(s) that have the domain.com in the Message-ID: header AND in Subject: header either the text activation OR activate OR confirm

But yeah, it doesn't work in debug mode :/ nor in the poster...


Anybody ideas how I could match what I wrote above?
 

madsem

Client
Регистрация
27.10.2011
Сообщения
66
Благодарностей
11
Баллы
0
ok, found a regex solution, np :-)
 

MohaZone

Новичок
Регистрация
19.12.2011
Сообщения
5
Благодарностей
0
Баллы
0
would you mind sharing?
 

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