I'm trying to find if a string exists inside a string. Instead of using
strstr() twice I want to use eregi() once.
What I want to check is if "HTTP/1.1 302" or "HTTP/1.0 302" exists in
some $output.
I'm trying something like :
eregi("[\"HTTP/1.\"]+[0-1]+[\" 302\"]",$output)
eregi("[HTTP/1.]+[0-1]+[ 302]",$output)
eregi("HTTP/1.+[0-1]+ 302",$output)
But I must be off cause it doesn't work.
Anyone?
thanks
berber
--
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]
- [PHP] RegEx Question George E. Papadakis
- Re: [PHP] RegEx Question Christian Reiniger
- Re: [PHP] RegEx Question Gyozo Papp
- [PHP] regex question Julian Simpson
- [PHP] Re: regex question Philip Hallstrom
- [PHP] Re: Regex question Boaz Yahav
- [PHP] Re: Regex question Andrew Sterling Hanenkamp
- RE: [PHP] Regex question Boaz Yahav
- Re: [PHP] Regex question CC Zona
- [PHP] Regex question Jon Haworth
- Re: [PHP] Regex question Stefan Rusterholz
- RE: [PHP] Regex question Jon Haworth
- Re: [PHP] Regex question Stefan Rusterholz
- RE: [PHP] Regex question Jon Haworth
- [PHP] RegEx question David Busby
- Re: [PHP] RegEx question Kevin Stone

