Regex to find all the urls on a given page with a specific word?

zxcvbn

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

I'm trying to find out a regex to search for a url on a page with specific word in it.

e.g. I want all the contact us, about us, support etc pages of a website. So, I want to generalize it by searching for generic contact us pages for those websites using these common words.

I'm confused on how to use "http:" or "www" at the same time..

Any help would really be appreciated.

Thanks
 

zxcvbn

Новичок
Регистрация
17.07.2012
Сообщения
76
Благодарностей
1
Баллы
0
Still looking for it..
Any help?

TIA..
 

drvosjeca

Client
Регистрация
26.10.2011
Сообщения
512
Благодарностей
455
Баллы
63
if you wannt it to check if this or that is there, than you can put it like this...

http://.*YourWord.*|www.*YourWord.*



this will find you all matches that start with http or www, you just need to make sure you put all into regex, or put it to list
 
  • Спасибо
Реакции: zxcvbn

zxcvbn

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

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