子域验证
问题描述:
如何验证子域名在coldfusion中的atextfiled?
How to validate "subdomain" in atextfiled in coldfusion?
答
子域名是什么意思?你能用一个例子来解释吗?一些代码也可能有帮助。
What do you mean by a subdomain? Can you explain with an example. Some code might also help.
这些是创建子域名的规则
子域名
子域名不构成注册域名的一部分,因此注册商规定的规则不适用。
您可以选择的角色:
* ABCDEFGHIJKLMNOPQRSTU VWXYZ
* 1 2 3 4 5 6 7 8 9 0
*连字符( - )
*地址必须以字母数字字符开头和结尾。标点符号不能放在一起
*子域名可以包含字母,数字或连字符( - ),不允许空格或其他字符。
我有很多在...中的疑问可能超过2连字符? etc..i必须在coldfusion中验证这些
these are rules to create Sub-Domain Names
Sub-Domain Names
A Sub-Domain Name does not form part of a Registered Domain Name, therefore the rules laid down by the Registrar do not apply.
The characters you can choose from:
* A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
* 1 2 3 4 5 6 7 8 9 0
* Hyphen (-)
* An address must begin and end with an alphanumeric character. Punctuation characters must not be placed together
* Sub-Domain names can contain letters, numbers or hyphens (-), NO spaces or other characters are allowed.
me have lot fdoubts in tht...is more than 2 Hyphen possible? etc..i have to validate thesein coldfusion
您可以使用正则表达式一次性进行检查。请参阅此链接。
You can use a regular expression to make the checks in one go. See this link.