"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
may or may not contain http:// or https://
may or may not contain www part
may or may not contain sub domain part
must have host part
there may be trailing / after the domain
no folder paths or file names
may or may not contain http:// or https://
may or may not contain www part
may or may not contain sub domain part
must have host part
there may be trailing / after the domain
no folder paths or file names
http://xxx.xxxx.xxx: valid
https://xxx.xxxx.xxx/: valid
http://xxxx.xxx/: valid
https://xxxx.xxx: valid
xxxx.xxx: valid
xxx.xxxx.xxx: valid
http://xxx.xxx.xxx/no_good: NOT valid
not_a_domain: NOT valid
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
Bookmarks