【发布时间】:2011-08-28 20:17:56
【问题描述】:
可能重复:
What is the best regular expression to check if a string is a valid URL?
我想通过正则表达式验证文本框。它应该是 Null 或有效的域名,例如 Google.com、example.com。
谢谢
【问题讨论】:
-
这里有一个正则表达式链接stackoverflow.com/questions/161738/…
标签: javascript regex validation dns