Email address regex

Vladimir99

Client
Регистрация
14.02.2019
Сообщения
34
Благодарностей
2
Баллы
8
Hi everybody,

I need your help for regex:

I want to extract email in webpage DOM, actually i use this regex that working fine :

[a-zA-Z0-9._%-]+\@[a-zA-Z0-9.-]+\.[a-zA-Z]+

But sometime there is in page source code this element : [email protected] (it's css or something else but not email address)

I would like to exclude this element from my regex (for example not .png)

How i can do that ??

Thank for your help
 

VladZen

Administrator
Команда форума
Регистрация
05.11.2014
Сообщения
22 270
Благодарностей
5 853
Баллы
113
If you save results to list, then you can delete such lines containing .png with list processing operations.
Containing text.png
 
  • Спасибо
Реакции: sam16

Vladimir99

Client
Регистрация
14.02.2019
Сообщения
34
Благодарностей
2
Баллы
8
Ok fine, thanks I hadn't thought about it

:-)
 

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