How to search for some piece of code through the github api, knowing only the keyword contained in the piece of code ?
Using the search term 'preg_replace', type 'code' and language 'PHP'. In any repo.
Just like the following link, but with the dedicated API.
https://github.com/search?q=preg_replace&repo=&langOverride=&start_value=1&type=Code&language=PHP
(Checked this, but can't see how to search code. http://developer.github.com/v3/search/#search-issues https://github.com/search )