日期:2014-05-16 浏览次数:20399 次
var sToMatch = "aaa.apk<br>bbb.apk<br>ccc.apk<br>ddd.apk<br>sdfsdf<br>asdfasfd<br>"; var matchArr = sToMatch.match( /(?:.*?<br>){3}/ ); alert( matchArr );//output: aaa.apk<br>bbb.apk<br>ccc.apk<br>