Re: [PHP] Preg Match Problem

2010-06-03 Thread Simcha Younger
On Wed, 2 Jun 2010 12:14:47 -0400 Alice Wei 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 >$day_query ="start_t

RE: [PHP] Preg Match Problem

2010-06-02 Thread Alice Wei
> From: peter.e.l...@gmail.com > Date: Wed, 2 Jun 2010 18:17:00 +0200 > Subject: Re: [PHP] Preg Match Problem > To: aj...@alumni.iu.edu > CC: php-general@lists.php.net > > On 2 June 2010 18:14, Alice Wei wrote: > > > > Hi, > > > > I have a code sn

Re: [PHP] Preg Match Problem

2010-06-02 Thread Peter Lind
On 2 June 2010 18:14, Alice Wei 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 '/'