$(function(){
//match方法---返回的是数组 var str = "1215rere565656"; alert(str.match(/d+/g));console.log(str.match(/d+/g)); })