Would be nice to include a validation method for example ...
url = Domainatrix.parse('http://www.test.com')
url.valid? # << returns true
url = Domainatrix.parse('http://www.test.madeupanddoesntexist')
url.valid? # << returns false
This could be done just by using a regular expression, however, also using the list of valid TLD's would be great.
Would be nice to include a validation method for example ...
url = Domainatrix.parse('http://www.test.com')
url.valid? # << returns true
url = Domainatrix.parse('http://www.test.madeupanddoesntexist')
url.valid? # << returns false
This could be done just by using a regular expression, however, also using the list of valid TLD's would be great.