Imho split() is NOT a good idea:
http://host.com/some/uri/whatever?some/query/string [download]
In reply to Re: use split? by fruiture in thread Regex to Truncate URLs Nicely by Cody Pendant