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.
我需要一个正则表达式来挑选带有全部大写字母或未知首字母缩写词的行。
即:类似的东西
/[A-Z]{2,}/
结合
/(?!USA|UK|TLA)/
你的意思是这样的?
\b(?!(?:USA|UK|TLA)\b)[A-Z]{2,}\b
在 Rubular 上看到它
\b是一个单词边界,以确保它会找到完整的单词。
\b