read the docs for ereg... i hardly use it, so i dont know
for certain if it will match. (althouth the use of "^" at
beginning *and* end suggests that it wont do what you expect)
preg will match "aol.com" with this regexp:
preg_match('/aol.com/', $string )
> -----Original Message-----
> From: Joseph Bannon [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 16, 2001 11:49 AM
> To: PHP (E-mail)
> Subject: [PHP] RE: string search
>
>
> Will this work?
>
> $string = "http://www.aol.com/";
>
> if (ereg ("^aol.com^", $string) {
> }
> else {
> }
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]