Re: validate URL

From: Date: Thu, 04 Dec 2003 18:21:45 +0000
Subject: Re: validate URL
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-24154@lists.php.net to get a copy of this message
On 4 Dec 2003 at 9:29, Paul M Jones wrote: > On Dec 4, 2003, at 9:22 AM, Arnaud Limbourg wrote: > > > Nope. > > > > it means valid values are http, https, ftp > > > > the ? is for 0 or 1 which matches http or https. > > Which means that mailto:, news://, and gopher:// are not valid? Mailto: itself is no URL since you won't have a // behind if you write it in a a-href-link. But for news and gopher you're right, yes. So maybe let's consider having an optional array as Pierre suggested. Mostly you just want to allow http, https and ftp I'm sure. Regards, Stefan

« previous php.pear.dev (#24154) next »