日期:2014-05-16 浏览次数:20414 次
<html>
<head>
<script>
var str = "http://info...S..test.com/..D./bottom.shtml";
str.replace(/http:\/\/info(.*)test.com\/(.*)\/bottom.shtml/,function($0,$1,$2) {
alert($1);
alert($2);
});
</script>
</head>
<body>
</body>
</html>