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

GREP Style Bold Specific Words with ( )

Explorer ,
Jul 05, 2018 Jul 05, 2018

Copy link to clipboard

Copied

Hi Guys,

I can't make a grep style bold with this text (highlighted in red). I think is it because of the ()

Can you help me please...

Many thanks!

Views

2.1K

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

correct answers 1 Correct answer

Community Expert , Jul 05, 2018 Jul 05, 2018

After a \Q *all* GREP codes are disabled, except for the \E one enabling them again. It's not listed in the Online Help at Find/Change text in InDesign but, yes, indeed implemented in the standard GREP package that InDesign uses.

You won't be needing this very much because usually it's easier to escape the few necessary characters "immediately" (that is, if you know what characters to escape), and for a plain text such as this I'd simply use regular Find Text instead of GREP. But the GREP Styles

...

Votes

Translate

Translate
Guide ,
Jul 05, 2018 Jul 05, 2018

Copy link to clipboard

Copied

You need to escape brackets.

To escape a character, just add a backward slash before. Like this:

Fees and Discounts \(Included Above\):

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
Guide ,
Jul 05, 2018 Jul 05, 2018

Copy link to clipboard

Copied

Not necessarily! 

\QFees and Discounts (Included Above):\E

Best,

Michel, for FRIdNGE

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
Guide ,
Jul 05, 2018 Jul 05, 2018

Copy link to clipboard

Copied

Cool

I didn't know that one

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 ,
Jul 05, 2018 Jul 05, 2018

Copy link to clipboard

Copied

After a \Q *all* GREP codes are disabled, except for the \E one enabling them again. It's not listed in the Online Help at Find/Change text in InDesign but, yes, indeed implemented in the standard GREP package that InDesign uses.

You won't be needing this very much because usually it's easier to escape the few necessary characters "immediately" (that is, if you know what characters to escape), and for a plain text such as this I'd simply use regular Find Text instead of GREP. But the GREP Styles always need GREP, so yeah, @Michel, well spotted.

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
Guide ,
Jul 05, 2018 Jul 05, 2018

Copy link to clipboard

Copied

Useful especially when you try to catch code!

Find:  \Q\d{3}-\u{2}\E

Best,

Michel

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
Explorer ,
Jul 05, 2018 Jul 05, 2018

Copy link to clipboard

Copied

Thank you so much guys!!!!!!

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 ,
Jul 05, 2018 Jul 05, 2018

Copy link to clipboard

Copied

LATEST

sarahkay  schrieb

… I can't make a grep style bold with this text (highlighted in red) …

^.+?:

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