想要匹配的字符串格式为:@xingren @nihao @tolerious@qq.com lalal
希望得到的列表项为:['@xingren','@nihao','@tolerious@qq.com']
我目前的正则表达式为: /@w+s/g,这个正则只能得到列表: ['@xingren','@nihao']而少了@tolerious@qq.com这一项.
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
哈哈~ 上面的答案傻眼了~ :-D
/@\S+/g