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.
我想做一个正则表达式,检查第一个位置的大写字母,后跟最多 5 个数字
这个正则表达式应该工作:
^[A-Z]\d{0,5}$
此断言大写字母,后跟 0 到 5 位数字字符。