howto NOT match

joel

Новичок
Регистрация
09.11.2017
Сообщения
22
Благодарностей
0
Баллы
1
Hi

How to select elements that do NOT match a word.

Exemple: every links that do NOT match "nofollow" ?
 

arhip1985

Client
Регистрация
31.10.2011
Сообщения
2 955
Благодарностей
781
Баллы
113
when you find tag a , find by innerhtml with regex [^(nofollow)]
 
  • Спасибо
Реакции: joel

joel

Новичок
Регистрация
09.11.2017
Сообщения
22
Благодарностей
0
Баллы
1
perfect; thank you Arhip!
 

joel

Новичок
Регистрация
09.11.2017
Сообщения
22
Благодарностей
0
Баллы
1
Tested, it does not work.. not as expected.
It is a valid regular, but not acting as expected...
 

drvosjeca

Client
Регистрация
26.10.2011
Сообщения
512
Благодарностей
455
Баллы
63
why dont you just extract them all to table if you dont know how to do it other way, and then match and check one by one which is fast, or regex them again all together and you are done?
 

joel

Новичок
Регистрация
09.11.2017
Сообщения
22
Благодарностей
0
Баллы
1
@drvosjeca, your right :-)

A "noregex" filter method would be welcome .

 

drvosjeca

Client
Регистрация
26.10.2011
Сообщения
512
Благодарностей
455
Баллы
63
regex is needed no matter which way you choose... you need it to filter out only data you need, so you get clean lines
 

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