Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要一个正则表达式来查找以单个“@”开头的字符串。
我试过"\B@\w+",但它也找到了 "@@Hello"。
谢谢你。
使用负前瞻结构(?!pattern):
(?!pattern)
^@(?!@)