Re: [PHP] Re: Checking for HTTP:// at the start of a string and more ////

2003-03-01 Thread Ernest E Vogelsinger
At 01:17 02.03.2003, Kris Jones said: [snip] >>Untested: >> >>if (preg_match('/^http:\/\/[^\.\s]+\.[^\s]+\/$/i', $string)) >>// valid string >>else >>// invalid string >> > >I've also been looking for this information. Can you please point me to a >l

[PHP] Re: Checking for HTTP:// at the start of a string and more ////

2003-03-01 Thread Kris Jones
Untested: if (preg_match('/^http:\/\/[^\.\s]+\.[^\s]+\/$/i', $string)) // valid string else // invalid string Should match a string beginning with 'http://', followed by one or more characters that are no dots or whitespace, followed by a dot, followed >by one or more characters that are no