C# - Skype 用户验证 (RE)
C# - Skype user validation (RE)
我在网上看到这个post 关于 Skype 名称的限制
A Skype username cannot be shorter than six characters or longer than
32. It can contain both letters and numbers, but must start with a letter; accented characters are not allowed. The only punctuation
marks you can use are commas, dashes, periods and underscores.
在 C# 中限制这些规则的正则表达式是什么?
此致
也许你可以试试这个:
/^[A-Za-z\d\,\-\.\_]{6,32}$/
编辑:使字母不区分大小写
我在网上看到这个post 关于 Skype 名称的限制
A Skype username cannot be shorter than six characters or longer than 32. It can contain both letters and numbers, but must start with a letter; accented characters are not allowed. The only punctuation marks you can use are commas, dashes, periods and underscores.
在 C# 中限制这些规则的正则表达式是什么?
此致
也许你可以试试这个:
/^[A-Za-z\d\,\-\.\_]{6,32}$/
编辑:使字母不区分大小写