当前位置: 动力学知识库 > 问答 > 编程问答 >

regex - Twitter queries using regexp?

问题描述:

I have been seeing posts and questions about using regexp to search for tweets on twitter using the java twitter API. Now, I have been trying to do that for the last two hours reading all possible resources on that with no success. For example: I am simply trying to query twitter once, but receive the tweets for both "guerillacafe" or "guerilla cafe"

I have tried (guerillacafe|guerilla cafe), ('guerillacafe'|'guerilla cafe'), (guerillacafe OR guerilla cafe), (guerilla?cafe) and many more, but like I said , I cant get it to work.

Please help with a simple regexp that would do the trick.

网友答案:

The Java Twitter API does not allow for regexp searches. The OR keyword is supported (your third example works for me).

分享给朋友:
您可能感兴趣的文章:
随机阅读: