[Developers] Searching for ?

Tim Sturge tsturge at metaweb.com
Fri Feb 1 21:27:26 UTC 2008


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
>   



More information about the Developers mailing list