I am trying to create a validation that checks to make sure a domain/url is valid for example \"test.com\"
def valid_domain_name? domain_name = domain.spli
I took what you had and modified it so that I could make the http:// or https:// optional:
http://
https://
/^((http|https):\/\/)?[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?$/ix