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

GREP Description Finding Wrong Character

Engaged ,
May 11, 2023 May 11, 2023

Copy link to clipboard

Copied

I'm in the midst of cleaning up a documet I imported from Word. My InDesign file has lots of blank lines and some page break characters. I'm using Grep to remove the carriage returns using the following:

Find what:

^\r

Change to:

(leaving this blank so it removes the ¶ pilcrow)

 

When I click Find Next, it picks up the returns but it's also picking up the page breaks too. Why would it pick up the breaks if it's not specified in my description? Is there a way to tell Grep to skip them?


It's only an island if you look at it from the water.
TOPICS
How to , Type

Views

184

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 ,
May 11, 2023 May 11, 2023

Copy link to clipboard

Copied

LATEST

Yep, things like page breaks are captured by /r. If you only want to capture "standard carriage returns" then try using ~b

Votes

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