RE: [PHP] preg_math problem with vars as the find

From: Date: Fri, 25 Apr 2003 16:53:38 +0000
Subject: RE: [PHP] preg_math problem with vars as the find
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-145283@lists.php.net to get a copy of this message
i dont think it really matters if (!preg_match("/\b\\\$code\b/",$res,$match))echo $res."<br>";// die($res); that still doesnt catch at all , u only need the match if u want to get the returned values -----Original Message----- From: Jim Lucas [mailto:phplist@zonedzero.net] Sent: Friday, April 25, 2003 8:21 AM To: dan rossi; Php-General Subject: Re: [PHP] preg_math problem with vars as the find i would go and re-read the section on the arguments for preg_match. If I recall correctly, it has three required arguments. Jim Lucas ----- Original Message ----- From: "dan rossi" <daniel@electroteque.org> To: "Php-General" <php-general@lists.php.net> Sent: Thursday, April 24, 2003 4:17 PM Subject: [PHP] preg_math problem with vars as the find > $res=fgets($this->connect,256); > if (!preg_match("/\b\\\$code\b/",$res))echo $res."<br>"; > > hi guys this portion of code doesnt seem to work i cannot get code to be > matched against , basically i am trying to match codes in a line of a sock > smtp connection :\ > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#145283) next »