标签: javascript regex mention
为什么我没有得到三次提及,但第一次重复两次?
console.log(/(@[\w]+)/g.exec('i am mentioning @user1 and @user2 and @user3'))