GREP find change in paragraph styles
- This topic has 2 replies, 2 voices, and was last updated 9 years ago by .
- You must be logged in to reply to this topic.
Learn / Forums / General InDesign Topics / GREP find change in paragraph styles
Learn / Forums / General InDesign Topics / GREP find change in paragraph styles
Tagged: GREP paragraph styles
Please help,
Looking for a GREP solution to use within a paragraph style that will look for a bullet character followed by a space or multiple spaces and replace it with bullet tab. We are working with data that has been inputted inconsistently where bullets are often followed by one or more spaces rather than a tab character. I know I could do this via the find and replace function, however as this data is linked to a live database it gets continually updated and will revert back to how it was (unless changed in the database which I have no control over). If I could add this to the paragraph style then it would correct this formatting automatically. Here’s an example of what I’m on about:
• line 1 has a space after bullet
• this line has a tab
•this line has no space or tab
• line 1 has 2 spaces after bullet
Any help would be greatly appreciated.
Hey John,
This might look messy (and there’s probably an easier way of doing it, I’m sure) but I got it to work even with multiple spaces after the bullet. Unfortunately you cannot integrate this as GREP in your paragraph style as the GREP feature in the paragraph styles does not have a replace field (I wish there was a Replace field, for situations like this), so you will have to do this with Find/Change.
Find: ~8\K((\w)| +)(?!\t)
Change: \t$2
Many thanks for your reply, I feared as much that it couldn’t be done through the paragraph style.
Ideally I need to get them to sort the data out!
Thanks again.
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies allows us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
To provide the best experiences, we and our partners use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us and our partners to process personal data such as browsing behavior or unique IDs on this site and show (non-) personalized ads. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Click below to consent to the above or make granular choices. Your choices will be applied to this site only. You can change your settings at any time, including withdrawing your consent, by using the toggles on the Cookie Policy, or by clicking on the manage consent button at the bottom of the screen.
You have to be logged in to save.
Not a member? Join Today - it's FREE!