美文网首页
string.match vs regexp.exec

string.match vs regexp.exec

作者: Time_Notes | 来源:发表于2020-07-27 07:05 被阅读0次

    var matches_array = str.match(regexp);

    如果正则表达式不包含g 标志,str.match() 将返回与RegExp.exec(). 相同的结果。

    相关文章

      网友评论

          本文标题:string.match vs regexp.exec

          本文链接:https://www.haomeiwen.com/subject/gaealktx.html