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.
如何编写正则表达式来查找元素
Ab1-123456-NFTGTF
我尝试了类似的东西
^([a-zA-Z0-9][^=](\-)[^=][a-zA-Z0-9][^=](\-)[^=][a-zA-Z0-9]
我应该有 3(字母和数字的组合) - 6 个数字 - 6(字母和数字的组合) – 学习者
尝试以下正则表达式
^[a-zA-Z0-9]{3}-[0-9]{6}-[a-zA-Z0-9]{6}$