> ## Documentation Index
> Fetch the complete documentation index at: https://craft-support.mintlify.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Search in a Document

> Find and replace text within a specific document and its subpages.

Craft offers two ways to search, and it's important to know the difference:

* **Global Search** helps you find content across all your documents, spaces, and pages. [Learn more](/en/organize-and-find/search)
* **Document Search** lets you find text within a specific document (and optionally its subpages).

This article focuses on using **Document Search**.

## How to Access Document Search

You can open search from the left sidebar in **Document View**:

<Tabs>
  <Tab title="macOS">
    * Click the **magnifying glass icon** (the last tab)
    * Or use the keyboard shortcut **Cmd + F**
  </Tab>

  <Tab title="Windows">
    * Click the **magnifying glass icon** (the last tab)
    * Or use the keyboard shortcut **Ctrl + F**
  </Tab>
</Tabs>

<img src="https://mintcdn.com/craft-support/i6CE6W2a4t-4UUEp/images/organize-and-find/search/in-document/en/content/find-in-document-1.png?fit=max&auto=format&n=i6CE6W2a4t-4UUEp&q=85&s=0d0f876492048cfd4b7c5d552aab6a9f" alt="Document search panel in the sidebar" width="1790" height="1047" data-path="images/organize-and-find/search/in-document/en/content/find-in-document-1.png" />

## Search Options

Once the search panel opens, you'll see several useful options.

<img src="https://mintcdn.com/craft-support/i6CE6W2a4t-4UUEp/images/organize-and-find/search/in-document/en/content/search-options.png?fit=max&auto=format&n=i6CE6W2a4t-4UUEp&q=85&s=351736679a88cbf8feffdba58cf723b1" alt="Search options and filters" width="517" height="682" data-path="images/organize-and-find/search/in-document/en/content/search-options.png" />

### Regular Find or Find & Replace

You can simply search for text within the document or use **Find and Replace** to update multiple matches in bulk.

### Search Scope

Click the **filter icon** on the right to choose *where* you want to search:

* **This Document only** – searches just the current document
* **This Document + Subpages** – includes all subpages nested under it

### Search Mode

You can choose between:

* **Simple text** – standard keyword search
* **Regex** – for advanced, pattern-based searches

### Additional Filters

You'll also find these toggles to refine your search results:

* **Match case** – distinguish between uppercase and lowercase letters
* **Ignore diacritics** – treat accented and non-accented characters as the same
* **Include partial matches** – find words that contain your search term

## Example: Using the Document Search

<img src="https://mintcdn.com/craft-support/i6CE6W2a4t-4UUEp/images/organize-and-find/search/in-document/en/content/document-search-1.png?fit=max&auto=format&n=i6CE6W2a4t-4UUEp&q=85&s=679c51d573395c972d00fdff518ed531" alt="Document search in action" width="2402" height="1480" data-path="images/organize-and-find/search/in-document/en/content/document-search-1.png" />

<img src="https://mintcdn.com/craft-support/i6CE6W2a4t-4UUEp/images/organize-and-find/search/in-document/en/content/document-search-2.png?fit=max&auto=format&n=i6CE6W2a4t-4UUEp&q=85&s=0bb8d119dcd66dd3051599fa2a83e8b3" alt="Search results highlighted in the document" width="2370" height="1454" data-path="images/organize-and-find/search/in-document/en/content/document-search-2.png" />

## Tip: Regex is Really Powerful

Regex (short for *regular expressions*) lets you search using patterns instead of exact text. It's perfect for more advanced find and replace operations.

**Example**:

If you've used `#todo`, `#inprogress`, and `#done` tags, and want to rename them all to `#task`, regex can do that in one go.

Search for:

```
#(todo|inprogress|done)
```

and simply replace with:

```
#task
```

<Info title="Learn More About Regex">
  Regular expressions are incredibly powerful for pattern matching. Consider learning the basics to unlock advanced search capabilities.
</Info>
