/** 获取任意字符串中的数据 **/var a = "123aa33a3";var re = /[a-zA-Z]/gvar result = a.replace(re, ''); alert(result);