假设我有字符串
"12345"
如果我.match(/\d{3}/g),我只得到一场比赛,"123".我为什么不来[ "123", "234", "345" ]?
.match(/\d{3}/g)
"123"
[ "123", "234", "345" ]
javascript regex
javascript ×1
regex ×1