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.
我想为一个字符串设置一个规则:8 个字符前 4 个是字母,不区分大小写。最后4是数字
如何为这种情况编写正则表达式?
^[a-zA-Z]{4}\d{4}$
解释: