0%

Book Description

If you need to make automated changes to InDesign documents beyond what basic search and replace can handle, you need regular expressions, and a bit of scripting to make them work. This Short Cut explains both how to write regular expressions, so you can find and replace the right things, and how to use them in InDesign specifically.

Visit the catalog page for Automating InDesign with Regular ExpressionsVisit the errata page for Automating InDesign with Regular Expressions

Table of Contents

  1. Copyright
  2. Introduction
  3. The Basics
  4. Regular Expression Essentials
    1. Special Characters
    2. Modifiers: Case Sensitivity and Global Matching
    3. Wildcards and Character Classes
    4. String and Word Boundaries
    5. Repetition
    6. Taming Repetition
    7. Backreferences
    8. Lookahead
    9. Matching Regex Syntax Characters
    10. Making Regexes More Readable
  5. Some Examples
    1. Dates
    2. Ranges
    3. Showing Section Numbers
    4. Capturing Captions
  6. Working with Plain Text
    1. Replace Using Wildcards
  7. Working with Formatted Documents
    1. Smallcaps
    2. Replace Selectively
    3. Double-Barreled Regex: Add a Thin Space
    4. Page Ranges: Continued
    5. Drop Digits
    6. Keep Initials Together
    7. Replace: Functions
  8. Variables in Regexes
  9. Look Before You Leap
  10. What JavaScript Cannot Do
  11. Resources
3.14.253.152