GREP: find only the quoted words within parenthesis
- This topic has 1 reply, 1 voice, and was last updated 8 years, 5 months ago by .
- You must be logged in to reply to this topic.
Learn / Forums / General InDesign Topics / GREP: find only the quoted words within parenthesis
Learn / Forums / General InDesign Topics / GREP: find only the quoted words within parenthesis
Tagged: GREP
I am trying desperately to make a GREP style to words within parenthesis that might have double quotation marks (I want the quotation marks and the words changed to a style, but no other words within the parenthesis). Example:
(my white “dog”)
(“cat”)
(“dog and cat”)
The problem I have is I cannot figure out how to find “dog” in my first example, although I can find “cat” and “dog and cat” just perfectly.
Here’s my GREP so far:
(?<=\()”.+?”(?=\))
Can anybody please help me adjust the above GREP so that it also finds “dog” in my first example?
Many thanks!
For those who may be interested, the GREP code for what I needed is:
\([^“\)]*\K“[^“]+”
Message thread for that solution: https://forums.adobe.com/message/8205528#8205528
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!