用正则表达式 提取网页中的超链接

2025-04-17 14:24:44
推荐回答(2个)
回答1:

href=(['"]?)(?!http)((?!js|css)[^"' \r\n])+\1

回答2:

^href=(?!.*(\\.css|\\.js|http://)).*$