Copy link to clipboard
Copied
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
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
...Copy link to clipboard
Copied
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.
~Barb
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
Happy to help.
~Barb
Copy link to clipboard
Copied
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
Find more inspiration, events, and resources on the new Adobe Community
Explore Now