PHP的正则表达式,在js中使用无效果_百度知道
最佳答案: str.match('/(?<=id=)\\w+/');//去掉单引号 改成str.match(/(?<=id=)\\w+/);更多关于求php正则,有些js正则不能用。的问题>>
求个js或者php正则表达式_百度知道
最佳答案: 两种 alert(value.length-value.replace(/O/g,'').length); alert(value.match(/O/g).length);更多关于求php正则,有些js正则不能用。的问题>>