0

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
"[\\:\\w*^";

and the format for the url is this;
proto:[sub-proto:]//[sub-domain.]domain[.tld][:port][/directory][/file.ext][?querystring]

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

2
Contributors
2
Replies
3
Views
7 Years
Discussion Span
Last Post by white feather
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.