Regex in Search API #112338
-
Select Topic AreaQuestion BodyIf I search for It seems to be as soon as I try and use regex through the API I get an empty total_count: 0 response? I can't see any documentation around this. |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
|
Currently, there is no regex support for the
The docs2 note that characters for regex search are simply ignored in the API. There has been no official announcement or blog post from GitHub about adding regex support to the code search REST API. The only indication thus far is a comment3 from a GitHub staff member about a year ago, suggesting it will be implemented but it's not ready yet. Footnotes |
Beta Was this translation helpful? Give feedback.
-
|
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
|
hi , tell me when you get it done please github. |
Beta Was this translation helpful? Give feedback.
-
|
Really would love to have the regex search available to use programmatically, it would really empower some workflows I'd like to simplify!! |
Beta Was this translation helpful? Give feedback.
-
|
Adding regex search options to all search types vs only code would greatly improve the search. Has anyone else considered building an unofficial GH browser extension for adding functionalities such as that? |
Beta Was this translation helpful? Give feedback.
-
|
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
Currently, there is no regex support for the
REST APIwhen searching for code. Instead, one must use theWebUI1 for regex searches.The docs2 note that characters for regex search are simply ignored in the API.
There has been no official announcement or blog post from GitHub about adding regex support to the code search REST API. The only indication thus far is a comment3 from a GitHub staff member about a year ago, suggesting it will be implemented but it's not ready yet.
Footnotes
Understanding GitHub Code Search syntax - Using regular expressions - GitHub Docs ↩
Searching code (legacy) - GitHub Docs ↩
🚢 New code search and code view fe…