简单的 javascript 正则表达式匹配 http://info.....test.com/.../bottom.shtml红色字体为任意的,正则表达式怎么写 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <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> var str = 'http://infoaatest.com/bbb/bottom.shtml';alert(/http:\/\/info.*?test.com\/.*?\/bottom.shtml/.test(str));刚才回复过了,居然没有了,版主怎么可以乱删回复呢? extjs 为什么同时Ext.Msg.alert()的时候只显示最后一个? 请问我这有涉及到跨域的问题吗? 用JS做了一个仿163收件人效果的界面,碰到一些问题,请大家帮帮忙 关于变量的传递问题 如何用这个东西上传图片?? 回家过年,散分,顺便讨论Javascript字符串连接效率问题 版主,帮我解决一下这个问题,谢谢啦 来看这个为什么出错!!! 这个下拉式菜单的问题出在哪呀? 急!!怎样让图片循环显示? jquery 通过父级 修改子级 CSS 正则匹配问题
<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>
alert(/http:\/\/info.*?test.com\/.*?\/bottom.shtml/.test(str));刚才回复过了,居然没有了,版主怎么可以乱删回复呢?