RE: [PHP] RE: string search

2001-07-16 Thread scott [gts]
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: J

Re: [PHP] RE: string search

2001-07-16 Thread Sheridan Saint-Michel
PROTECTED]> To: php <[EMAIL PROTECTED]> Sent: Monday, July 16, 2001 10:59 AM Subject: RE: [PHP] RE: string search > 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

RE: [PHP] RE: string search

2001-07-16 Thread scott [gts]
aracter by character, C-style. :-) > -Original Message- > From: Sheridan Saint-Michel [mailto:[EMAIL PROTECTED]] > Subject: Re: [PHP] RE: string search > > Couldn't he just do something like > > if (strstr($text, "aol.com")) { >MyFunction(); &g