代码如下:'dadfafdafdsdfs'.replace(/(.*)<\/pre>/ig,function(log){console.log(log);});输出:dadfafdafdsdfs请问怎样写,才能只匹配到前面这里即可dadfafdaf
'dadfafdafdsdfs'.replace(/(.*)<\/pre>/ig,function(log){console.log(log);});输出:dadfafdafdsdfs请问怎样写,才能只匹配到前面这里即可dadfafdaf
'dadfafdafdsdfs
dadfafdaf
(.*)<\/pre>/ig,function(log){console.log(log);});输出:dadfafdafdsdfs请问怎样写,才能只匹配到前面这里即可dadfafdaf
console.log(log);});输出:dadfafdafdsdfs请问怎样写,才能只匹配到前面这里即可dadfafdaf
});输出:dadfafdafdsdfs请问怎样写,才能只匹配到前面这里即可dadfafdaf
输出:dadfafdafdsdfs请问怎样写,才能只匹配到前面这里即可dadfafdaf
dadfafdafdsdfs请问怎样写,才能只匹配到前面这里即可dadfafdaf
dadfafdafdsdfs
请问怎样写,才能只匹配到前面这里即可dadfafdaf
郎朗坤
相关分类