找回密码
 加入
搜索
查看: 2367|回复: 3

[AU3基础] 求一正则

[复制链接]
发表于 2014-8-16 10:47:48 | 显示全部楼层 |阅读模式
1.
http://www.ncbi.nlm.nih.gov/m/pubmed/334325/
网页里有 Full text: HighWire
想把HighWire 和对应的url提取出来。注意,不是所有的都是Full text: 也有 Free Full text:字样的,比如下面这个例子。
2.
http://www.ncbi.nlm.nih.gov/m/pubmed/3343252/
网页里有  Free full text: HighWire
想把HighWire 和对应的url提取出来。
3.
http://www.ncbi.nlm.nih.gov/m/pubmed/25090459
网页里有 PMCID PMC4121133 Free Full Text
想把PMC4121133 提取出来。
4.
不是所有的网页都有这个full text字样,有的网页,没有这样的字样,就不用提取了。
如这个就没有
http://www.ncbi.nlm.nih.gov/m/pubmed/25090/
发表于 2014-8-18 19:51:08 | 显示全部楼层
1-2
text: <a href="(.*?)">HighWire<
3
<span>(PMC\d+)</span>
 楼主| 发表于 2014-8-18 20:23:14 | 显示全部楼层
1-2
text: HighWire<
3
(PMC\d+)
jtzxgfy 发表于 2014-8-18 19:51



    不一定都是highwire的
http://www.ncbi.nlm.nih.gov/m/pubmed/17355253/
发表于 2014-9-10 22:54:53 | 显示全部楼层
前来学习。。。。。。。。。。。。。。
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-10-3 02:39 , Processed in 0.079289 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表