[Developers] Searching for ?

Arthur van Hoff AVH at zing.net
Fri Feb 1 21:30:36 UTC 2008


I figured it out. I need "*\\?*". 

Why do I need the *s?

> -----Original Message-----
> From: developers-bounces at freebase.com [mailto:developers-
> bounces at freebase.com] On Behalf Of Tim Sturge
> Sent: Friday, February 01, 2008 1:27 PM
> To: For discussions about MQL,Freebase API and apps built on Freebase
> Subject: Re: [Developers] Searching for ?
> 
> Hi Arthur,
> 
> This should be possible, although you need two backslashes before the
> ?,
> not just one. That's because JSON itself handles the single backslash
> escapes, and is very much like how regular expressions work in many
> programming languages.
> 
> So
> 
> "feed~=": "\\?",
> 
> should give you only those podcasts with a query component in the
> URL.
> 
> Tim
> 
> Arthur van Hoff wrote:
> >
> > Hi,
> >
> > I'm trying to find all podcasts that have an '?' in their URL. Here
> is
> > the query:
> >
> > "query":[{
> >
> > "id": null,
> >
> > "name":null,
> >
> > "type": "/user/cotton/default_domain/podcast",
> >
> > "feed~=": "?",
> >
> > "feed":null
> >
> > }]
> >
> > It returns way too many results. Can I search for '?' or is that a
> > special character?
> >
> > By the way, I already specify "escape":false in the request, and I
> > tried escaping the ? with \.
> >
> > ___________________________________________
> >
> > Arthur van Hoff, Dell-ZING, CTO Software and Services.
> >
> > W: 650-267-2413, F: 650-267-2498, M: 650-283-0842
> >
> > -------------------------------------------------------------------
> -----
> >
> > _______________________________________________
> > Developers mailing list
> > Developers at freebase.com
> > http://lists.freebase.com/mailman/listinfo/developers
> >
> 
> _______________________________________________
> Developers mailing list
> Developers at freebase.com
> http://lists.freebase.com/mailman/listinfo/developers


More information about the Developers mailing list