87,996
社区成员




var s = 'http://www.xxxx/auto/1\
http://www.xxxx/auto/2/\
http://www.xxxx/auto/3/index.html';
var re = /.+?auto\/([^\/])+?(\/)?/ig;
s.replace(re, function($){
re.test($);
re.lastIndex = 1;
alert( RegExp.$1 )
})