Hi Caleb, One possibility is to search using * as a placeholder which matches any word. For example:
bacon * eggs http://www.google.com/search?q=bacon+*+eggs Which requests results with one word between the two specific words. Here's an example requesting results with any two words between the terms: bacon * * eggs http://www.google.com/search?q=bacon+*+*+eggs Happy coding, Jeff On Dec 7, 12:35 pm, Caleb <[email protected]> wrote: > Hi, > I am creating a search that returns page results where word A is > within n words of word B. I've found a regular expression that will do > this but I haven't found any support in the Google search for this. > > Is there any simple way to accomplish this search? > > my ideas were: > 1) Use a regular expression (Google doesn't seem to support this > [other than in code search]) > 2) use a NEAR operator. (Google doesn't seem to support this either.) > 3) Parse each web-page result individually to match the regular > expression. > > I'd prefer using option 1 or 2 if there's a way to implement either of > those in the Google API. > > Does anyone have any ideas? > > Thanks! -- You received this message because you are subscribed to the Google Groups "Google AJAX APIs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-ajax-search-api?hl=en.
