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

Grep search ignoring Character style?

Engaged ,
Jan 08, 2024 Jan 08, 2024

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
275
Translate
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

correct answers 1 Correct answer

Engaged , Jan 11, 2024 Jan 11, 2024

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.

Translate
Community Expert ,
Jan 08, 2024 Jan 08, 2024

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

Translate
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

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?

 

Translate
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

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

Translate
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

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 

Translate
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
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.

Translate
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