• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers

InDesign GREP help

Community Beginner ,
Sep 27, 2022 Sep 27, 2022

Copy link to clipboard

Copied

Greetings, Can anyone share a GREP expression that will take a block of copy (with paragraph breaks) in InDesign and insert a Page Break after every 8 words?

TOPICS
How to

Views

49

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 01, 2022 Oct 01, 2022

Copy link to clipboard

Copied

LATEST

This is kinda working for me

 

Find
(?s)((.+?\b)\K){16}

Change to:

~P

 

Reason why I say 'kinda' is when I run the search for Change All - it's taking 1 line and making 9 words.

 

When I just run by Change/Find (individually) it works fine.

 

Weird - I don't know why!

 

I'm sure there's a GREP expert with a far superior method than this, but I am curious as why Change All results in 1 page being 9 words. But Change/Find (individually) works... very odd...

 

 

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines