I was wondering how I could check a string broken into an array against a preg_match to see if it started with www. I already have one that check for http://www.
John Gruber of Daring Fireball has posted a very comprehensive regex for all types of URLs that may be of interest. You can find it here:
http://daringfireball.net/2010/07/improved_regex_for_matching_urls