Find an exact phrase in your documents
To find an exact word or phrase, open Search, choose Grep, type the text in the search box, and press Enter. Grep lists every passage in the Space’s PDF and Markdown files that contains that text. If your text includes punctuation such as . or (, first turn off Regex in the row of filters under the search box, so every character matches itself.
Before you start
Section titled “Before you start”Grep searches the same files as ranked search: the PDF and Markdown files in the Space that have finished processing. For a PDF, it reads the text Mempipe extracted, the same text the Markdown view shows. Search inside your PDFs and Markdown files explains which files search covers.
Find exact text
Section titled “Find exact text”-
Open Search.
In a Space, choose Search, the magnifying glass in the rail at the left edge. The panel opens in Grep mode.
-
Enter the text.
Type the word or phrase in the search box, such as
third-party software. -
Decide whether you need Regex.
Regex is on when the panel opens, so some characters work as patterns instead of matching themselves:
. * + ? ( ) [ ] { } | \ ^ $. If your text contains any of them, choose Regex under the search box to turn it off. -
Run the search.
Press Enter, or choose the magnifying glass at the end of the search box.
-
Read the results.
Results are grouped by file and sorted by file path, then by position in the file. Each file’s path heads its group. Each result shows the heading it sits under, the passage, and where it is (
p.12for a PDF page,L40for a Markdown line). Choose a result to open the file at that passage. When the count line says More available, choose Load more.
The count line also shows Candidate rows and either Index served or Scoped scan. They describe how the search ran, and you can ignore them.

What counts as a match
Section titled “What counts as a match”A match must fit inside one passage: a paragraph, heading, list item, table row, or code block. Grep reads the Markdown behind each passage, so formatting marks count, such as the ** around bold text and the address inside a link. In a PDF, a word split across two lines can lose its hyphen, so “third-party” may appear as “thirdparty”. If a phrase runs across two passages, or has bold text, a link, or a line break in the middle, search for a shorter part of it.
Match upper and lower case
Section titled “Match upper and lower case”Choose how letter case matters with the case button under the search box:
- Smart case, the default. A pattern in lowercase ignores case, so
trustworthyalso finds “Trustworthy”. A pattern with a capital letter matches case exactly, soGOVERNdoes not find “govern”. - Match case. Case always matches exactly.
- Ignore case. Case never matters.
Search with patterns
Section titled “Search with patterns”With Regex on, Pattern is a regular expression, a short code that describes text to match. For example:
| Pattern | Finds |
|---|---|
risk (tolerance|appetite) |
“risk tolerance” or “risk appetite” |
GOVERN \d+\.\d+ |
IDs such as “GOVERN 1.1” and “GOVERN 4.2” |
\bbias\b |
the word “bias”, but not “biased” |
For the full pattern syntax, see Search, grep, and glob syntax.
Narrow the search
Section titled “Narrow the search”The filters sit in a row of buttons under the search box. Changing one searches again straight away.
-
Files limits which files Grep reads. Choose + Files, then fill in one of its two tabs and choose Apply:
- Folder and type: type a folder, such as
raw, to search it and its subfolders. Choose PDF or Markdown under File type to search one kind of file. Leave either empty to search them all. - Glob pattern: a file’s full path, such as
raw/NIST.AI.100-1.pdf, or a pattern such aswiki/*.mdor**/*.{pdf,md}. Find a file by name explains patterns.
The Files button turns teal while it narrows the search and shows what it searches, such as Files raw · PDF. To search every file again, choose its ×, or Search all files.
- Folder and type: type a folder, such as
-
Up to sets how many results each page shows: 25, 50, 100, 500, or 1,000.
-
The case button and Regex are described above.
If Grep shows a message
Section titled “If Grep shows a message”- Characters such as ( ) . ? were read as a regular expression. With Regex on, your text had pattern characters and nothing matched. Choose Search as exact text to search for it as typed.
- No results in the files you chose. Nothing matched inside the files Files narrows to. Check the folder name, or choose Search all files.
- No results. No passage contains the text. Check the spelling and the case button. If the text includes punctuation, clear Regex and run it again. No results does not prove the text is absent: a file may still be processing, or formatting may split the phrase. Try a shorter part of it. Search results are missing or out of date has more checks.
- Your text was read as a regular expression, and characters such as ( ) or [ ] make it an invalid one. Choose Search as exact text to search for it as typed, or fix the pattern.
- Your text was read as a regular expression, which leaves too little fixed text to search every file. A short clause marker such as
(a)reads as the single letterawhen Regex is on. Choose Search as exact text to search for it as typed. If you meant a pattern such as\d{4}, set Files to search fewer files instead. - There is too little fixed text to search every file. The pattern is too vague to search the whole Space quickly. Make it include at least three letters or digits in a row that every match must contain, such as
biasin\bbias\b. With Regex on, characters such as.and*are part of the pattern rather than text to find, so they don’t count. Or set Files to search fewer files. - Preparing recent uploads for search. A file you uploaded is still processing, so results may be incomplete. Wait a minute and run the search again.
For other messages, see Search inside your PDFs and Markdown files.
- Open a citation and check its source to read a result in context.
- Find a file by name when you know the file but not where it is.