Regex for urls without http, https, ftp
Try this this will validate url with (http,ftp,https) or without(http,ftp,https)..
/^(?:(ftp|http|https):\/\/)?(?:[\w-]+\.)+[a-z]{3,6}$/;
Make the (ftp|http|https):\/\/
part optional:
((ftp|http|https):\/\/)?
Try this this will validate url with or without(http,ftp,https) in upper and lower cases and also allows you to for numerics
/^(?:(ftp|http|https)?:\/\/)?(?:[\w-]+\.)+([a-z]|[A-Z]|[0-9]){2,6}$/gi;