Docs › Writing Studio › Find and replace: scopes / regex / auto-version safety
Find and replace: scopes / regex / auto-version safety
Last updated June 2, 2026 · 3 min read
Want to rename "J. Doe" to "M. Brown"? Want to clear every duplicate-typed "the the"? That's what find-and-replace is for.

Open the search panel
Cmd/Ctrl Shift F — left panel switches to global search.
Or click the 🔍 search icon at the top of the File explorer panel.
Just searching the current file? Slima's built-in search is the global panel (
Cmd/Ctrl Shift F). For a quick look within one file you can also use your browser's native page find (Cmd/Ctrl F) — that's a browser feature, not a Slima search bar.
Search scope
Full-text search runs across all files in the current book (chapters + notes + references), grouping results by file.
Just want the current file? There's no Slima single-file find bar — use your browser's native page find (
Cmd/Ctrl F).
Search options
Nearby usually:
- Aa Case sensitive (default off)
- |abc| Whole word (searching
catwon't matchcategory) - .* Regex
- 🔄 Enable the replace field
Replace
Opening replace adds a second field:
- Replace → replaces the first / next match
- Replace All → all at once
Important: Replace All edits files directly — it does not create a snapshot of its own. Your safety net is the normal auto-version triggers (after inactivity / before AI edits / before syncing / before leaving); for a big replace, manually create a named version beforehand so you can roll back.
Results
Below: every hit listed with filename + line + surrounding text. Click any hit to jump.
Regex examples
| Looking for | regex |
|---|---|
| Curly vs straight quotes mixed | [「『](.+?)[」』] |
| Duplicate characters | (.)\1 |
| Trailing whitespace | \s+$ |
| Number + "years" | (\d+)\s*years |
In regex mode the replace field can use $1 / $2 to reference capture groups.