Re: Preg Match Problem

From: Date: Wed, 02 Jun 2010 16:17:00 +0000
Subject: Re: Preg Match Problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-305747@lists.php.net to get a copy of this message
On 2 June 2010 18:14, Alice Wei <ajwei@alumni.iu.edu> wrote: > > Hi, > > I have a code snippet here as in the following: > > [CODE] > $keywords = preg_split("/[\s,]+/", $day); > $count = count($keywords); >  if(preg_match("(Mon|Tue|Wed|Thu|Fri)/i", $keywords[$i])) { //line 40 You're lacking the starting delimiter '/' Regards Peter -- <hype> WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind BeWelcome/Couchsurfing: Fake51 Twitter: http://twitter.com/kafe15 </hype>

« previous php.general (#305747) next »