Why regex still exists? It is unintuitive, requires mastering an obscure syntax, it is very hard to debug, and very difficult to explain to others how it works. It feels like we are trying to write intermediate code by ourselves, while we should have a human readable language that generates regex.
Show HN: Search code in GitHub repos using regular expressions
21–30 of 165 posts
Re: Show HN: Search code in GitHub repos using regular expressions
#22Amazin, why Microsoft hasn't built this for GitHub yet is beyond me. Can it grep on individual repos?
Re: Show HN: Search code in GitHub repos using regular expressions
#23I'm the CEO at Sourcegraph (universal code search for companies to use on their internal code). Our product is really optimized for searching a company's internal code right now, but soon we'll start working on offering much better search for public and open-source code as well. If you'd like to help out or just chat, please reach out! sqs@sourcegraph.com
Re: Show HN: Search code in GitHub repos using regular expressions
#24I am the CEO at SerpApi. If you need a job, shot me an at julien _at_ serpapi.com.
Re: Show HN: Search code in GitHub repos using regular expressions
#25Earlier quoted context omitted.
I looked for strings that I am sure only appear in my code, and I found several copies of them, but not mine.
Can you provide detailed steps to reproduce? What strings did you search? Two examples of repos that appeared in the results? What is the link to your repo that did not appear in the results? Details like this would help the OP to track down the exact cause of why it has indexed the forks but not the original repo.
In my case, I am not talking about forks but about people who copied my files into their repositories (with proper attribution and respecting the license). I just searched for my surname and was happily surprised to see it in major projects like ffmpeg, pytorch, bytedeco, scikit and opencv.
Re: Show HN: Search code in GitHub repos using regular expressions
#26https://stackoverflow.com/questions/43891605/search-partial-...
I've used Sourcegraph and it was cool; will have a look at this new tool too. But, GitHub pretty please add plain food old grep abilities to your search!
Re: Show HN: Search code in GitHub repos using regular expressions
#27Re: Show HN: Search code in GitHub repos using regular expressions
#28This is awesome! @danfox, sent you an email though commenting here too. I'm the CTO @ GitHub. Would love to talk to you about this and other things we are building in this area at GitHub. Feel free to email direct to jason at github.com
@danfox, i'm always down to talk code search as well - rand@github.com
Re: Show HN: Search code in GitHub repos using regular expressions
#29Amazin, why Microsoft hasn't built this for GitHub yet is beyond me. Can it grep on individual repos?
Why would you want to use this tool to grep individual repos? If you know the repo you're interested in, you can just clone it and then grep it locally...?