[PHP] Re: Trying to check for a valid URL String.

2003-12-14 Thread Al
Philip J. Newman [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] so far i got ... if (!ereg(^http:\/\/([_\.0-9a-zA-Z-]+\.)+[a-zA-Z]/i,$websiteUrl) { On a quick glance, three things stand out: 1) You allow underscores in the website domain, but these are not valid characters for

Re: [PHP] Re: Trying to check for a valid URL String.

2003-12-14 Thread Justin French
On Monday, December 15, 2003, at 02:34 PM, Al wrote: Philip J. Newman [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] so far i got ... if (!ereg(^http:\/\/([_\.0-9a-zA-Z-]+\.)+[a-zA-Z]/i,$websiteUrl) { On a quick glance, three things stand out: 1) You allow underscores in the website