Learn how to effectively search across multiple repositories in Factory using powerful regex-based queries
Access the Context Menu
Enter Your Query
Review Results
Basic Regex Patterns
.
(dot) is a wildcard character matching any single character
\.
(escaped dot) matches a literal dot
?
matches zero or one of the preceding character
*
matches zero or more of the preceding character
+
matches one or more of the preceding character
print.+
would match “print” followed by one or more charactersMultiline Search
OR[[:space:]]IMPLIED
for multiline search patterns.Example: function OR[[:space:]]IMPLIED return
would match functions that contain a return statement, even if “return” is on a different line.Filtering Results
file:
or f:
- Filter by filename
repo:
or r:
- Filter by repository name
branch:
or b:
- Filter by branch name
lang:
- Filter by programming language
file:README test
searches for “test” in README filescase:
:
Logical Operators
-
(dash) negates an expression
AND
between expressions
or
for explicit OR operations
()
to group expressions
Finding API Usage
api\.call\(
Explanation: This finds instances of “api.call(” across the codebase, useful for tracking API usage.Locating Test Files
file:test lang:python def test_
Explanation: This finds Python test function definitions in files with “test” in the name.Identifying TODO Comments
// TODO:
Explanation: Finds TODO comments in code (adjust comment syntax for different languages).Finding Deprecated Code
@deprecated or [Dd]eprecated
Explanation: Locates usage of deprecation markers in comments or annotations.