日期:2014-05-16  浏览次数:20314 次

怎么样JS正则提取字符
怎么样JS正则提取字符

------解决方案--------------------
<SCRIPT LANGUAGE= "javascript ">

var ss= "jhfj0jjjhghbi0ohbnbnhjh ";
var re =/(0.*0)/;
if (re.test(ss))
var a=(RegExp.$1);
alert(a);

</SCRIPT>