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

Add a Find/Replace grep to a paragraph style?

Explorer ,
Oct 07, 2018 Oct 07, 2018

Hi I'm very new to Greps and I'm hoping to use the Find/Replace Grep "Multiple Space to Single Space" and insert that in my Paragraph Style GREP so I can just click once and fix everything. Is this possible?

I'd also like to remove Tabs and replace with a single space. Is there a Grep for that? And can it also be inserted into a Paragraph Style also?

Thanks for any help.

Cheers

john

Screen Shot 2018-10-08 at 1.32.58 PM.pngScreen Shot 2018-10-08 at 1.32.48 PM.png

1.8K
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

Community Expert , Oct 07, 2018 Oct 07, 2018

Hi John:

GREP is available in InDesign as both a Find/Change option to search for a pattern of characters and change characters to something else, OR as a paragraph style to search for a pattern and format it. You won't be able to embed a find/change into a paragraph style.

Your best bet is to just run the F/C once all the text files have been placed. If you are looking to remove all white space (spaces and tabs, for example) and replace them with a space try:

Find: \h+

Change: \s

If that is working

...
Translate
Community Expert ,
Oct 07, 2018 Oct 07, 2018

Hi John:

GREP is available in InDesign as both a Find/Change option to search for a pattern of characters and change characters to something else, OR as a paragraph style to search for a pattern and format it. You won't be able to embed a find/change into a paragraph style.

Your best bet is to just run the F/C once all the text files have been placed. If you are looking to remove all white space (spaces and tabs, for example) and replace them with a space try:

Find: \h+

Change: \s

If that is working for you, you can save it as a query with the Save Query button at the top of the dialog box.

Screenshot 2018-10-07 19.27.17.png

~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
Explorer ,
Oct 07, 2018 Oct 07, 2018

Hi Barb,

Thanks that takes out one extra step! Shame it can't go in a paragraph style but I'll live.

Cheers for your help. So fast too

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 ,
Oct 07, 2018 Oct 07, 2018

Happy to help.

~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
Guide ,
Oct 08, 2018 Oct 08, 2018
LATEST

Hi Barb,

Just a comment: I'll never use such a regex in a "clean-up"! … Really too greedy and blind!

Especially about the tabulation.

Best,

Michel, for FRIdNGE

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