Skip to main content
Inspiring
March 11, 2021
Answered

How to find duplicate paragraphs?

  • March 11, 2021
  • 2 replies
  • 2836 views

For example, identical text in footnotes need to be styled as Ibid.

In this case, they are consecutive.*
How to get them? Thanks

 

BVC. Annual Report. December /1916

BVC. Annual Report. December /1916

BVC. Annual Report. December /1916

 

* Also, it is possible to find them in diffent locations?

This topic has been closed for replies.
Correct answer FRIdNGE

Adding a carriage-return at the end of the last para (if not):

 

Find:  ^(.+\r)\1+

Replace by:  $1

 

(^/)  The Jedi


… Or, without taking in account a "last" carriage-return:

 

Find:  ^((.+)\r)\1*\2

Replace by:  $2

 

[surely very tired for writing such a grep code! Time to go to sleep!  =D ]

 

(^/)

2 replies

Adobe Expert
March 12, 2021

^(.+\r)\1

That should do it.

 

But - I am having mixed results, for example on the ME version on the Mac it finds differently.

On the English version on my PC it finds differently.

 

How odd? 

CamiloUAuthor
Inspiring
March 12, 2021

No, it doesn'work. It stops after the first finding.
Thanks.

 

 

FRIdNGE
Inspiring
March 12, 2021

Adding a carriage-return at the end of the last para (if not):

 

Find:  ^(.+\r)\1+

Replace by:  $1

 

(^/)  The Jedi

Steve Werner
Adobe Expert
March 11, 2021

Perhaps I'm not understanding, but you can do it with Edit > Find/Change as shown below. I set "Ibid" to italic by using the Change Format category. The ^p metacharacter stands for End of Paragraph and can be chosen from the @ menu.

 

Steve Werner
Adobe Expert
March 11, 2021

To answer your other question, the instances do not have to be consecutive.

Inspiring
March 11, 2021

Steve

Why italics for Ibid.?