RE: [PHP] Re: Spaces Not Detected from Regular Expression preg_match

2009-02-26 Thread Alice Wei
> To: php-general@lists.php.net > Date: Wed, 25 Feb 2009 14:42:36 -0600 > From: nos...@mckenzies.net > Subject: [PHP] Re: Spaces Not Detected from Regular Expression preg_match > > Shawn McKenzie wrote: > > Shawn McKenzie wrote: > >> Alice Wei wrote: > >&g

[PHP] Re: Spaces Not Detected from Regular Expression preg_match

2009-02-25 Thread Shawn McKenzie
Shawn McKenzie wrote: > Shawn McKenzie wrote: >> Alice Wei wrote: >>> Hi, >>> >>> I have a code as in the following: >>> >>> >> >>> $file = "test.txt"; >>> $fp = fopen($file, "r"); >>> >>>while(!feof($fp)) { >>>$data = fgets($fp, 1024); >>> >>>if ((preg_match("/0/",$data)

[PHP] Re: Spaces Not Detected from Regular Expression preg_match

2009-02-25 Thread Shawn McKenzie
Shawn McKenzie wrote: > Alice Wei wrote: >> Hi, >> >> I have a code as in the following: >> >> > >> $file = "test.txt"; >> $fp = fopen($file, "r"); >> >>while(!feof($fp)) { >>$data = fgets($fp, 1024); >> >>if ((preg_match("/0/",$data)) || >> (preg_match("/\"\s\"/",

[PHP] Re: Spaces Not Detected from Regular Expression preg_match

2009-02-25 Thread Shawn McKenzie
Alice Wei wrote: > Hi, > > I have a code as in the following: > > > $file = "test.txt"; > $fp = fopen($file, "r"); > >while(!feof($fp)) { >$data = fgets($fp, 1024); > >if ((preg_match("/0/",$data)) || > (preg_match("/\"\s\"/",$data)) || > (preg_match("/