URL validation

function checkURL(url) { var theurl=url; var tomatch= /^(http?:\/\/|ftp:\/\/)(www\.)?+\.(com|org|net|mil|edu|ca|co.uk|co.in|com.au|ac.in|gov|gov.in)(\/)?/; if (tomatch.test(theurl)) { return true; } else…

Read More