日期:2014-05-16 浏览次数:20431 次
<!DOCTYPE HTML> <html> <head> <meta charset="gb2312" /> <title></title> <style> </style> </head> <body> <div> <a href='/Patent/01127847' target='_blank'> <a href='/Patent/01127821' target='_blank'> <a href='/Patent/01127832' target='_blank'> </div> <script> function $t(name, cot){ cot = cot || document; return cot.getElementsByTagName(name); } var str = $t('div')[0].innerHTML; var re = /.+?Patent\/(\d+).+?/gi; var tmp = []; str.replace(re, function($){ re.test($); re.lastIndex = 0; tmp.push( RegExp.$1 ); }) alert(tmp) </script> </body> </html>