Hi all...

On Wednesday 23 July 2003 22:16, CPT John W. Holmes wrote:
> From: "Curt Zirzow" <[EMAIL PROTECTED]>
>
> > preg_match('#\<title\>(.*)\</title\>#im', $text, $matches):
>
> Also, if there's ever a case where could have
>
> <title>
> My Title
> </title>
>
> i.e. things spread over multiple lines, then you'll need:
>
> preg_match('#<title>(.*)</title>#is',$text,$matches);
>
> or, even better (ungreedy)
>
> preg_match('#<title>([^<]+)</title>#i',$text,$matches);

Thanks for you all's help but,,,,,

I've tried all three of these lines and get nothing at all, blank. On the 
other hand I tried 

exec( 'grep "\<title\>" ' .$tmp, $match);

I was abe to get the titles. The odd thing was that if for example I had a 
list of 8 hits there would be dups in the list. Checking it closer I found 
that grep was stopping at the sub-dir for example two files, same sub-dir:

/~hatridge/bulletin/summer03/file1.php
/~hatridge/bulletin/summer03/file2.php

/~hatridge/bulletin/spring03/file3.php
/~hatridge/bulletin/spring03/file4.php


The returns would be 

title1
title1

title3
title3

Any ideas?

TIA!

JIM


Jim Hatridge
Linux User #88484
-- 
Our country was colonized by the religious, political, economic, and criminal
rejects of every country in the world. We have been carefully breeding insane, 
obsessive, fanatic lunatics with each other for over 400 years, resulting in 
the glorious strain of humanity known as "Americans". You have to expect 
some... peculiarities. 

Read about new German stamps each quarter:
         http:/www.fecundswamp.net/~hatridge/bulletin



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to