Skip to content

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.

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.

  1. Open Search.

    In a Space, choose Search, the magnifying glass in the rail at the left edge. The panel opens in Grep mode.

  2. Enter the text.

    Type the word or phrase in the search box, such as third-party software.

  3. 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.

  4. Run the search.

    Press Enter, or choose the magnifying glass at the end of the search box.

  5. 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.12 for a PDF page, L40 for 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.

The Search panel in Grep mode with Filters open, five results for third-party software, and a PDF passage containing it highlighted
Grep lists every passage that contains your text. Filters set letter case, patterns, and which files to search.

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.

Choose how letter case matters with the case button under the search box:

  • Smart case, the default. A pattern in lowercase ignores case, so trustworthy also finds “Trustworthy”. A pattern with a capital letter matches case exactly, so GOVERN does not find “govern”.
  • Match case. Case always matches exactly.
  • Ignore case. Case never matters.

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.

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 as wiki/*.md or **/*.{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.

  • Up to sets how many results each page shows: 25, 50, 100, 500, or 1,000.

  • The case button and Regex are described above.

  • 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 letter a when 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 bias in \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.