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.
我正在寻找一个只取出 2 或 3 个字符的正则表达式。如果有更多字符,则不应匹配。见上传图片:
我已经尝试过:
/^[A-Z]{2,3}$/
(\b[A-Z]{2,3})