/*抓取網頁www.itsource.cn中所有的9位數的qq號*///1.向網頁www.itsource.cn發起請求,獲取網頁數據html;var http=require('http');var html='';http.get('http://wwww.itsource.cn/',function(res){res.on('data',function(txt){html+=txt;});res.on('end',function(){var reg=/[\u4E00-\u9FA5]{0,}$/;console(html.match(reg));});});//正則表達式該怎么寫呢,想匹配所獲取網頁數據中的所有的漢字
匹配多個漢字的正則表達式該怎么寫呢
qq_假裝感興趣_03243209
2018-03-07 14:43:40