Why I am not getting the three mentions but the first one repeated twice?
console.log(/(@[\w]+)/g.exec('i am mentioning @user1 and @user2 and @user3'))
Why I am not getting the three mentions but the first one repeated twice?
console.log(/(@[\w]+)/g.exec('i am mentioning @user1 and @user2 and @user3'))