[removed] How to get multiple matches in RegEx .exec results

后端 未结 6 1598
遥遥无期
遥遥无期 2020-12-09 02:54

When I run

/(a)/g.exec(\'a a a \').length

I get

2

but I thought it should return

3
         


        
6条回答
提交回复
热议问题