http://info.....test.com/.../bottom.shtml
红色字体为任意的,正则表达式怎么写
红色字体为任意的,正则表达式怎么写
解决方案 »
- javaEE学习路线
- jquery实现拖拉复制效果(draggalbe+droppable)
- javascript画曲线 在firedox浏览器下应该怎么画
- javascript动态图片问题
- 发个惠谱的Banner特效
- to muxrwc
- 怎么返回当前已经移除的元素
- <select><option>问题~~~~~~~~~~~~~~ 在线等待~~~~~~~~~~
- 问<iframe src="ww.html?ss=2222&ff=3333" ...</iframe>请问在下一个页面怎样读出这两个值。请帮助,我在线等待。
- listbox值得左右移动
- 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));刚才回复过了,居然没有了,版主怎么可以乱删回复呢?