慕村9548890
给你个自定义函数:<script language="javascript">//用法:getInfo(要查找的字符串,提取字符串前面的字符,提取字符串后面的字符)function getInfo(source,start,end){var oReg=new RegExp(start+".*?"+end,"img");var oRegStart=new RegExp(start,"g");var oRegEnd=new RegExp(end,"g");return source.match(oReg).join("=").replace(oRegStart,"").replace(oRegEnd,"").split("=");}alert(getInfo("'F':'abcd', 543,',4543", "'F':'", "', 543"))alert(getInfo("200 js 正则取文本问题!在线等", "正则取", "问题"))</script>