Skip to main content
Spenno
Inspiring
Mar 11, 2026 2:00 PM UTC
Answered

How to Use GREP to Add Double Quotes at the Start and End of a Paragraph in InDesign

Hi! I’m hoping someone can help with a simple GREP to add double quotes to the start and end of a paragraph please so I can incorporate it into a style? (ie shift 2). Thanks!

    Peter Spier
    Peter SpierCorrect answer
    Community Expert
    Mar 11, 2026 6:48 PM UTC

    This Grep should work to enclose a whole paragraph in Quotes: 

    Find ^.+$

    change ~{$0~}

    and If you need to limit it to specific paragraphs they need to have a unique style you can specify or you’ll have to select them...

    5 replies

    Peter Spier
    Community Expert
    Community Expert
    Mar 11, 2026 2:34 PM UTC

    If you mean to create a GREP style that will add quote characters to a paragraph where they are missing, you can’t do that. Grep Styles can only format existing text. To add missing characters you would need to use Find/Change, and you might want to script this if the intent is to add the quotes to all paragraphs that have a particular style assigned.

    Translate
    Spenno
    SpennoAuthor
    Inspiring
    Mar 11, 2026 2:39 PM UTC

    Ah poo. Ok fair enough. I’m sure I’ve done something along these lines somehow… an idea to get the opening quote would be as a bullet, but not sure how to add the closing one!

    Translate
    Peter Spier
    Community Expert
    Peter SpierCommunity ExpertCorrect answer
    Community Expert
    Mar 11, 2026 6:48 PM UTC

    This Grep should work to enclose a whole paragraph in Quotes: 

    Find ^.+$

    change ~{$0~}

    and If you need to limit it to specific paragraphs they need to have a unique style you can specify or you’ll have to select them...

    Translate