preg_match("/^@\w+(#|:| ){1}$/", "content=#作曲家#看那你面的罢了:stuck_out_tongue_closed_eyes:@000000a ", $matches, PREG_OFFSET_CAPTURE);
我想匹配"@000000a",但结果不正确,希望懂的人可以指点一下,非常感谢!
content中的内容出现的顺序是随机的。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
pregmatch(“/@(\w+)/”)
/@\d+\w+/ 或者 /@[0-9]+[a-zA-Z]+/