简单的 javascript 正则表达式匹配
http://info.....test.com/.../bottom.shtml
红色字体为任意的,正则表达式怎么写
[解决办法]
<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>