Skip to main content
Sourcebot uses a powerful regex-based query language that enabled precise code search within large codebases.

Syntax reference guide

Queries consist of space-separated regular expressions. Wrapping expressions in "" combines them. By default, a file must have at least one match for each expression to be included. Multiple expressions can be or’d together with or, negated with -, or grouped with (). Expressions can be prefixed with certain keywords to modify search behavior. Some keywords can be negated using the - prefix.