Re: Regex for Validating URL

From: Date: Thu, 02 Sep 2004 13:04:54 +0000
Subject: Re: Regex for Validating URL
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-195551@lists.php.net to get a copy of this message
On Thursday 02 September 2004 20:52, John Holmes wrote: > From: "Nick Wilson" <nick@stylesheet.org> > > > Does anyone have the regex to make sure an http address is full and > > without error? like http://www.example.com > > > (?:http://(?:(?:(?:(?:(?:[a-zA-Z\d](?:(?:[a-zA-Z\d]|-)*[a-zA-Z\d])?)\. > )*(?:[a-zA-Z](?:(?:[a-zA-Z\d]|-)*[a-zA-Z\d])?))|(?:(?:\d+)(?:\.(?:\d+) [snip] Did you just pulled it out of your ***[1] or did you copy-n-paste it from somewhere? [1] hat -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* Life would be tolerable but for its amusements. -- G.B. Shaw */

« previous php.general (#195551) next »