开发者

how to fetch all the links starting with http://plus

开发者 https://www.devze.com 2023-04-06 20:22 出处:网络
I have a pregmatch with the following search : $regexp = \"&l开发者_运维技巧t;a\\s[^>]*href=(\\\"??)([^\\\" >]*?)\\\\1[^>]*>(.*)<\\/a>\";

I have a pregmatch with the following search :

   $regexp = "&l开发者_运维技巧t;a\s[^>]*href=(\"??)([^\" >]*?)\\1[^>]*>(.*)<\/a>";

now how can I reformat this to look for something like :

href="http://plus  

I dont want the entire thing to be changed , just that part for the href.

Thanks


$regexp = "<a\s[^>]*href=(\"??)(http:\/\/plus[^\" >]*?)\\1[^>]*>(.*)<\/a>";

0

精彩评论

暂无评论...
验证码 换一张
取 消