Search lines with a regular expression
Finds lines that match an RE2 regular expression. Each result cites the file the lines came from. Results are not relevance-ranked. A result appears only if this API key can read the file.
Authorizations
Workspace-scoped API key, sent as a bearer token. The recommended header. The workspace is implicit in the key and never appears in a URL.
Body
An RE2 regular expression, matched line by line. One line, no backreferences, no lookahead or lookbehind.
1024"refund|return"
Maximum files to return. Defaults to 50.
1 <= x <= 500Cite the file each result came from. Defaults to true.
Response
Files in the live files with matching lines, not ranked. One page; there is no next.
Type discriminator. Always list.
list The search this page came from.
"/v1/search/regex"
Always false. A search answers the best matches in one page and has no next page.
false
Always null. A search has no position to resume from, so there is no cursor to pass back.
null
Files with matching lines.