RE: [PHP] Simple preg I think [SOLVED]

From: Date: Mon, 31 May 2004 06:02:01 +0000
Subject: RE: [PHP] Simple preg I think [SOLVED]
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-187264@lists.php.net to get a copy of this message
Thanks to everyone who answered my request for help with this. Yes, as some of you have pointed out, the pattern was correct but my logic was wrong. So once again thank you to all that helped. Dave C :-) -----Original Message----- From: Liu Jihua [mailto:kidylius@163.com] Sent: 31 May 2004 01:53 To: Dave Carrera Subject: Re: [PHP] Simple preg I think Dave Carrera You are right! $str = "asdf./test"; echo preg_match("/\.\//", $str ,$arr); //print 1 print_r($arr); ======= 2004-05-30 11:55:00 您在来信中写道:======= >Hi List, > >How do I match an accordance of "./" in a string (without the quotes) ? > >I have tried preg_match("/\.\//i", $str); > >Which I thought would work , as per the manual, but no joy. > >Any help or guidance is appreciated > >Thank you in advance > >Dave C > >--- >Outgoing mail is certified Virus Free. >Checked by AVG anti-virus system (http://www.grisoft.com). >Version: 6.0.692 / Virus Database: 453 - Release Date: 28/05/2004 > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, visit: http://www.php.net/unsub.php = = = = = = = = = = = = = = = = = = = =         致 礼!         Liu Jihua         kidylius@163.com           2004-05-31 --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.692 / Virus Database: 453 - Release Date: 28/05/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.692 / Virus Database: 453 - Release Date: 28/05/2004

« previous php.general (#187264) next »