Validating url

Posted by / 12-Nov-2017 00:55

Validating url

On this page we will show a few examples of how to validate e-mails, website addresses (URLs) and some other special cases of input data.

See the URL Standard if you’re looking to parse URLs in the same way that browsers do. If you are running a PHP version older than 5.2 you are out of luck.There is also a bug in PHP 5.2.13 and PHP 5.3.2 that will not allow URLs with dashes in them to validate.I wanted to know if there is any standard APIs in Java to validate a given URL?I want to check both if the URL string is right i.e.

validating url-35validating url-72validating url-5

Also, single weird leading and/or trailing characters aren’t tested for.