如何在word中保留某一段区间不同的文字

  • A+
所属分类:软件应用教程

今天在做百度主动推送的时候,因为php推送示例中要推送上千条网页,从网站地图中提取的连接是这样的。

  1. <url>
  2. <loc>http://www.feiyu01.com/8974.html</loc>
  3. <lastmod>2017-07-18T16:32:18+00:00</lastmod>
  4. <changefreq>monthly</changefreq>
  5. <priority>0.6</priority>
  6. </url>
  7. <url>
  8. <loc>http://www.feiyu01.com/8972.html</loc>
  9. <lastmod>2017-07-18T15:27:33+00:00</lastmod>
  10. <changefreq>monthly</changefreq>
  11. <priority>0.6</priority>
  12. </url>
  13. <url>
  14. <loc>http://www.feiyu01.com/8970.html</loc>
  15. <lastmod>2017-07-18T15:26:26+00:00</lastmod>
  16. <changefreq>monthly</changefreq>
  17. <priority>0.6</priority>
  18. </url>
  19. <url>
  20. <loc>http://www.feiyu01.com/8968.html</loc>
  21. <lastmod>2017-07-18T15:25:10+00:00</lastmod>
  22. <changefreq>monthly</changefreq>
  23. <priority>0.6</priority>
  24. </url>

 

想要提取http*html区间的文字,用以下方法就可以了:

  1. *(http*html)*
  2. 替换为
  3. \1^p
  4. 要选择使用通配符(记得在高级搜索选项中勾起这个)