How can I use regex in a JavaScript function to return true if the url is of the form:
http://<any string without a dot>.one.two.com
and false otherwise?
for example it would return true for the following:
http://helloworld.one.two.com , http://poop.one.two.com , etc.
for example, it would return false for
http://rawr.zero.one.two.com , http://two.com , etc.
Thanks!
/^http:\/\/[^.]*\.one\.two\.com$/