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.
是否有更短的方法来查找大小为 6、8 或 10 个字符的字母数字字符串?
^([[:alnum]]{6}|[[:alnum]]{8}|[[:alnum]]{10})$
利用模式。
^([[:alnum:]]{2}){3,5}$
就像是:
([a-zA-Z0-9]{2}){3,5}