Skip to main content
Participant
July 13, 2023
Question

Help to determine correct GREP formula to style multiple quotes within a paragraph

  • July 13, 2023
  • 2 replies
  • 166 views
Can anyone please teach/give me the correct GREP formula for converting any text between typographer's
double quote marks (left and right) to a QUOTE character style and anything outside the quotes to be in the para style.
Important: A single paragraph might have several quotes with plain text in between each one.
i.e. "Quote charater style" Body paragraph style "Quote character style" Body paragraph style "Quote character style"
THANKS!
This topic has been closed for replies.

2 replies

m1b
Community Expert
Community Expert
July 13, 2023

Hi @Susie Curry, here an example of using a grep style to do what you ask. See attached demo document.

The grep I used is:

“[^”]+”

- Mark 

Community Expert
July 13, 2023

It might work with nested styles.

 

None - up to - typographer quote (you can copy and paste the left quote )

Char Style - up to - right quote

 

And then you set a repeat.

 

Once you bild the sequence it should work.

 

 

But.... Can you provide examples as it's always best, who knows, maybe GREP style might suit.

 

But I do think from your description a nested style would work.