Skip to main content
Participant
May 21, 2025
Answered

Issue with "Find and Change All" Function in InDesign Affecting Text Formatting

  • May 21, 2025
  • 2 replies
  • 191 views

Hi Team,

I'm encountering an issue with InDesign's Find and Change All functionality that impacts text formatting.

Scenario:
I need to search for a specific pattern and apply replacements across the entire document. When I perform the replacements one by one, everything works perfectly, and the original formatting (such as bold and italics) is preserved. However, when I use Change All, it breaks the formatting and causes styled text to lose its appearance.

Even in a simple scenario—where we are not modifying the content but just replacing the matched string with itself—the formatting still gets affected.

 

Example:

  • Find What: ([^~a\r\n]+)

  • Change To: $0


Before:

 

After:

 

Looking forward to your suggestions or a possible workaround to retain the formatting while using the Change All function.

 


Thanks in Advance,
Muthu Veerappan

Correct answer Joel Cherney

I've found all manner of weirdness when including the anchor marker in the "Change" field. Does your query work as expected when you run it without the ~a?

 

When working on a project with thousands of anchors and a find/change query list hundreds of items long, I found that the safest way to actually use "Change To" was to only specify ~a in lookaheads and lookbehinds. 

2 replies

Joel Cherney
Community Expert
Joel CherneyCommunity ExpertCorrect answer
Community Expert
May 21, 2025

I've found all manner of weirdness when including the anchor marker in the "Change" field. Does your query work as expected when you run it without the ~a?

 

When working on a project with thousands of anchors and a find/change query list hundreds of items long, I found that the safest way to actually use "Change To" was to only specify ~a in lookaheads and lookbehinds. 

Robert at ID-Tasker
Legend
May 21, 2025

So you're looking for at least one Anchored marker OR end of paragraph OR manual line break - at the beginning of the paragraph?