Jump to content

Help with regex


smith.james0

Recommended Posts

Hi

I have tried to write a script to collect web links from a html page put them in an array and compare it with an array of urls from my db. I am using this expression to find the urls in the page /href="([^\s"]+)/ it works but it returns http://www.google.com when I want google.com I have search the net but most of the expressions I came across don't work or return image urls as well. Can anyone help?

 

James

Link to comment
https://forums.phpfreaks.com/topic/261753-help-with-regex/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.