Search and Replace Bookmarks

Overview

Search and Replace finds text in bookmark titles and replaces it with new text. Use this tool to correct repeated typos, rename sections, strip unwanted characters, or apply consistent naming conventions across the bookmark tree.

How to use

  1. Open a PDF that contains bookmarks.
  2. Go to Plug-Ins > Bookmarks > Search and Replace.
  3. Enter the text to find in the Find field.
  4. Enter the replacement text in the Replace field. Leave it blank to delete matched text.
  5. Set matching options and scope as needed.
  6. Click OK to apply all replacements.

Matching options

OptionDescription
Match case When checked, the search is case-sensitive. “Chapter” will not match “chapter”.
Match whole words only When checked, only complete words are matched. Searching for “art” will not match “start”.
Use regular expressions When checked, the Find field is treated as a regular expression pattern. This enables advanced pattern matching such as character classes, quantifiers, and capture groups.

Regex library

Click the Regex Library button to open a collection of saved regular expression patterns. Selecting a pattern inserts it into whichever field (Find or Replace) was last focused. When a pattern is inserted, the Use regular expressions checkbox is automatically enabled.

Scope

OptionDescription
Entire tree Search and replace across all bookmark levels.
Level range Restrict the operation to bookmarks within a range of levels. Enter a start and end level between 1 and 99. The start level must be less than or equal to the end level.

Replace mode

OptionDescription
Replace all Replaces every occurrence of the matched text within each bookmark title.
Replace first Replaces only the first occurrence in each bookmark title.

Warning

Replacements are applied immediately to all matching bookmarks. There is no undo in this dialog. Save your PDF before performing bulk replacements.

Tip

To remove text without replacing it, leave the Replace field empty. For example, find DRAFT - and leave Replace blank to strip the prefix from all bookmark titles.

See also