var matches_array = str.match(regexp);
如果正则表达式不包含g 标志,str.match() 将返回与RegExp.exec(). 相同的结果。
本文标题:string.match vs regexp.exec
本文链接:https://www.haomeiwen.com/subject/gaealktx.html
网友评论