sex123 发表于 2014-7-25 21:08:46

求一正则,把数字提取出来?

http://meta.wkhealth.com/pt/pt-core/template-journal/lwwgateway/media/landingpage.htm?issn=0090-3493&volume=42&issue=2&spage=448
把里面的这些数字分别提出来?
0090-3493
42
2
448

weichenxiehou 发表于 2014-7-25 23:21:06

回复 1# sex123 #include <Array.au3>

Local $sTemp="http://meta.wkhealth.com/pt/pt-core/template-journal/lwwgateway/media/landingpage.htm?issn=0090-3493&volume=42&issue=2&spage=448"
Local $aRet=StringRegExp($sTemp,"(?:+)(?:-+)?",$STR_REGEXPARRAYGLOBALMATCH)
_ArrayDisplay($aRet)

lpxx 发表于 2014-7-26 08:00:27

=([^&]+)
页: [1]
查看完整版本: 求一正则,把数字提取出来?