Re: [PHP] Findng a pattern

2002-10-28 Thread Henry
Hi Again, sorry it's taken so long. Thankyou for your help. I have since reappraised my thoughts on this subject and would like to thank all of you (and inparticular Rasmus Lerdorf) for your time in replying to my question. I will not be using anthing that was provided in reply to circumvent googl

Re: [PHP] Findng a pattern

2002-10-05 Thread Marek Kilimajer
preg_match("Results ([0-9]+) - ([0-9]+) of about ([0-9]+). Search took ([0-9]+) seconds.",$string, $hits); $hits[1], $hits[2], $hits[3], $hits[4] will contain your numbers Henry wrote: >Yes > >But that the string is contained within a much bigger string as well > >I want to search for the f

Re: [PHP] Findng a pattern

2002-10-04 Thread Rasmus Lerdorf
You are building something that will automatically scrape Google by explicitly circumventing the tools they have provided for you to do so. Whether the information is for your own internal statistics or not is irrelevant. The terms of service state: No Automated Querying You may not send aut

Re: [PHP] Findng a pattern

2002-10-04 Thread Henry
9]+[.]*[0-9]*/", $string, $result); > > print_r($result); > > ?> > > > Timothy Hitchens (HITCHO) > [EMAIL PROTECTED] > > HITCHO has Spoken! > > > > > > > Sent: Saturday, 5 October 2002 2:50 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP]

Re: [PHP] Findng a pattern

2002-10-04 Thread Henry
Dear Rasmus et.al. I am not wishing to reformat or display or mirror anything from google. This is for my own internal statistics. I hope that puts your mind at rest. Henry "Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > You realize that yo

RE: [PHP] Findng a pattern

2002-10-04 Thread Timothy J Hitchens
]+[.]*[0-9]*/", $string, $result); print_r($result); ?> Timothy Hitchens (HITCHO) [EMAIL PROTECTED] HITCHO has Spoken! Sent: Saturday, 5 October 2002 2:50 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Findng a pattern Yes The string will always be the same and the repective values wi

Re: [PHP] Findng a pattern

2002-10-04 Thread Rasmus Lerdorf
You realize that you are asking us to help you violate the terms of service of Google? A direct quote from their terms of service: "You may not take the results from a Google search and reformat and display them, or mirror the Google home page or results pages on your Web site." -Rasmus

Re: [PHP] Findng a pattern

2002-10-04 Thread Henry
in the same order each time? > > > Timothy Hitchens (HITCHO) > [EMAIL PROTECTED] > > HITCHO has Spoken! > > > > > > > -Original Message- > From: Henry [mailto:[EMAIL PROTECTED]] > Sent: Saturday, 5 October 2002 2:44 PM > To: [EMAIL PROTECTED] &

RE: [PHP] Findng a pattern

2002-10-04 Thread Timothy J Hitchens
Are the value in the same order each time? Timothy Hitchens (HITCHO) [EMAIL PROTECTED] HITCHO has Spoken! -Original Message- From: Henry [mailto:[EMAIL PROTECTED]] Sent: Saturday, 5 October 2002 2:44 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Findng a pattern Thanks, but I

Re: [PHP] Findng a pattern

2002-10-04 Thread Henry
Yes But that the string is contained within a much bigger string as well I want to search for the follwong string but with wild cards for the numeric values and I would like to know the values as well. "Results $1 - $2 of about $3. Search took $4 seconds." Where all the $'s are numeric value

Re: [PHP] Findng a pattern

2002-10-04 Thread Henry
Thanks, but I don't want to uses google's SOAP interface, is there a preg type solution. "Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Google has a SOAP interface for this. > > On Sat, 5 Oct 2002, Henry wrote: > > > Dear All, > > > > Excuse

RE: [PHP] Findng a pattern

2002-10-04 Thread Timothy J Hitchens
Are you saying you want to be able to extract the numbers etc? Timothy Hitchens (HiTCHO) [EMAIL PROTECTED] HiTCHO has Spoken! -Original Message- From: Henry [mailto:[EMAIL PROTECTED]] Sent: Saturday, 5 October 2002 2:36 PM To: [EMAIL PROTECTED] Subject: [PHP] Findng a pattern D

Re: [PHP] Findng a pattern

2002-10-04 Thread Rasmus Lerdorf
Google has a SOAP interface for this. On Sat, 5 Oct 2002, Henry wrote: > Dear All, > > Excuse my ignorance but I'm STILL a newbie to this aspect of PHP. > > $str="Results 1 - 10 of about 14. Search took > 0.04 seconds." > > I would like to look for the string above in a buffer of text. However