Re: Re: I suck at regular expressions!

From: Date: Thu, 15 Nov 2001 14:59:15 +0000
Subject: Re: Re: I suck at regular expressions!
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-74715@lists.php.net to get a copy of this message
Actually, that does work when I'm using a string with that content. The only thing I can figure is that there is a problem with the way the the file is being read. Hmm. Ah, well. I'll make it work. Where's my hammer? At 12:18 AM 11/15/2001, Johan Holst Nielsen wrote:
Richard S. Crawford wrote: Not quite. I have the same problem. I tried at test on my localhost. Following works for me: $string = "<html><head><title>Sometime i dont wanna know</title></head><body></body></html>"; if(eregi("<title>(.+)</title>", $string, $arr)) { echo "Title: ".$arr[1]; } else { echo "unknown title"; } This works for me? Regards, Johan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net
Sliante, Richard S. Crawford http://www.mossroot.com mailto:rscrawford@mossroot.com AIM: Buffalo2K ICQ: 11646404 Y!: rscrawford "It is only with the heart that we see rightly; what is essential is invisible to the eye." --Antoine de Saint Exupéry "Push the button, Max!"

« previous php.general (#74715) next »