我试着写一个正则表达式来匹配以下内容:
must start with a letter
the rest must be alphanumeric
at least one character in length
max characters 12
我能不能匹配
a
k2jdj
hello
example72812
答案 0 :(得分:2)
你可以尝试
[a-zA-Z][a-zA-Z0-9]{0,11}
答案 1 :(得分:1)
此?
[a-zA-Z][a-zA-Z0-9]{0,11}