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

Grep search ignoring Character style?

Engaged ,
Jan 08, 2024 Jan 08, 2024

Copy link to clipboard

Copied

I'm trying to find the text in any paragraph where the same character style is applied to the entire paragraph. So I specify the Character style ("Bold")  in the Find dialog. And search for ^.+$
What it's grabbing is entire paragraph if Bold is applied to the first character.  So it looks like the .+ is ignoring the character styling.
Can someone educate me please?

TOPICS
How to

Views

95

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 ,
Jan 08, 2024 Jan 08, 2024

Copy link to clipboard

Copied

I set this up as you described but evidently not getting the same result. What did I miss?

 

~Barb

 

2024-01-08_18-23-25 (1).gif

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
Engaged ,
Jan 08, 2024 Jan 08, 2024

Copy link to clipboard

Copied

Seems to me that this search string ought to ignore the 4th and 5th paragraphs because the character style is not applied all the way thru the end of the paragraph. If you search only ^.+ you grab only the bold characters. Why does adding the $ end of paragraph marker start grabbing even non  Bold?

 

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
Community Expert ,
Jan 08, 2024 Jan 08, 2024

Copy link to clipboard

Copied

I don't get you, as per @Barb Binder's demo ^.+$ is not grabbing the non bold area. It is only selecting the second and the last paragraph which are all bold.

-Manan

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
Community Expert ,
Jan 09, 2024 Jan 09, 2024

Copy link to clipboard

Copied

Maybe the demo was confusing? At the beginning, I am pointing out that I have manually applied the bold character style to a few words at the beginning of paras four and five, because I thought that was that area of concern: "What it's grabbing is entire paragraph if Bold is applied to the first character. "

 

When I run the Find/Change, starting at the top, it only matches paras two and five. It skips paras one, three, four and five. 

~Barb 

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
Engaged ,
Jan 11, 2024 Jan 11, 2024

Copy link to clipboard

Copied

LATEST

Well, I'm getting a different result... it's as if the search string were only ^.+ without the $ at the end.

I'm using an antique version (CS6) of InDesign, so maybe this is an old bug that has since been fixed. Unfortinately, an upgrade is not possible because our third-party vendor does not support it.

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