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

  • Автор темы Автор темы zxcvbn
  • Дата начала Дата начала

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
 
Still looking for it..
Any help?

TIA..
 
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

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