We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DNS规定,域名中的标号都由英文歌数字组成,每一个标号不超过63个字符(为了方便记忆,一般也不会超过12个字符),也不区分大小写字母。标号中除了连字符(-)外不能使用其他的标点符号。
reg=/^(?=^.{3,255}$)[a-z0-9][-a-z0-9]{0,62}(\.[a-z0-9][-a-z0-9]{0,62})+$/ reg.test('baidu.com'); // =>true reg.test('baidu中国.com'); // =>false
The text was updated successfully, but these errors were encountered:
No branches or pull requests
域名
DNS规定,域名中的标号都由英文歌数字组成,每一个标号不超过63个字符(为了方便记忆,一般也不会超过12个字符),也不区分大小写字母。标号中除了连字符(-)外不能使用其他的标点符号。
The text was updated successfully, but these errors were encountered: