> 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
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)
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\"/",
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("/
4 matches
Mail list logo