- A+
所属分类:软件应用教程
今天在做百度主动推送的时候,因为php推送示例中要推送上千条网页,从网站地图中提取的连接是这样的。
- <url>
- <loc>http://www.feiyu2.com/8974.html</loc>
- <lastmod>2017-07-18T16:32:18+00:00</lastmod>
- <changefreq>monthly</changefreq>
- <priority>0.6</priority>
- </url>
- <url>
- <loc>http://www.feiyu2.com/8972.html</loc>
- <lastmod>2017-07-18T15:27:33+00:00</lastmod>
- <changefreq>monthly</changefreq>
- <priority>0.6</priority>
- </url>
- <url>
- <loc>http://www.feiyu2.com/8970.html</loc>
- <lastmod>2017-07-18T15:26:26+00:00</lastmod>
- <changefreq>monthly</changefreq>
- <priority>0.6</priority>
- </url>
- <url>
- <loc>http://www.feiyu2.com/8968.html</loc>
- <lastmod>2017-07-18T15:25:10+00:00</lastmod>
- <changefreq>monthly</changefreq>
- <priority>0.6</priority>
- </url>
想要提取http*html区间的文字,用以下方法就可以了:
- *(http*html)*
- 替换为
- \1^p
- 要选择使用通配符(记得在高级搜索选项中勾起这个)