ok, so i have this so far

String p = "(http|ftp|https):" + // sees if the proto is any of these
" (\\:[\\w^\\:]+:)?   " + // gets the sub-proto
" \\/\\/" + // the two forward slashes
"([\\w*.]+)" + // gets the subdomain(s), domain and tld

and the format for the url is this;

Ive looked at a bunch of tutorials on regx and even looked at some url reg expressions but none of them really helped much

Thanks in advance