Skip to main content
Participating Frequently
November 22, 2025
質問

Different Versions of InDesign found different GREP search results

  • November 22, 2025
  • 返信数 1.
  • 147 ビュー

In the same ID file, I searched for the pattern "\r\t\r^<br \\/><br \\/><br \\/><br \\/>\\r\\n<p style=\\”text-align: center;\\”><strong>".
Id2024 and Id2026 found 385 results, while Id2025 found 386 results. This same situation occurred in other searches. Since I was working on version 2024, I wasted hours with incorrect results.

返信数 1

Community Expert
November 23, 2025

You are matching a pretty gnarly sequence of returns, tabs and escaped HTML. The key is to normalise the line breaks and the <br> tags so the pattern stops relying on exact ASCII escape sequences that 2025 seems to interpret differently.

 

This might be a more robust GREP pattern that should match the same structure but tolerate slight variations:


\r\t\r(?:<br\s*\/>\s*){4}\r\n<p style="text-align:\s*center;"?><strong>

 

If you want it even stricter:

\r\t\r(?:<br\s*\/>){4}\r\n<p style="text-align: center;"><strong>

 

If you want it more forgiving:

\r\t\r(?:<br\s*\/>\s*){3,5}\s*<p[^>]*text-align:\s*center[^>]*><strong>

 

If you paste in a small sample of the actual text block you are matching the pattern can be tuned even further so it is consistent across 2024, 2025 and 2026.

 

 

Ali Cinki作成者
Participating Frequently
November 24, 2025

Thank you very much. 
I will try your pattern and write the result here.

Harshika Verma
Community Manager
Community Manager
December 2, 2025

Hi Ali Cinki,

 

Hope you're doing well!

We would like to follow up. Are you able to solve the problem by trying the suggestions shared by our expert? Please feel free to update the discussion if you need further assistance from us.

 

We would be happy to help.

 

Thanks,

Harshika