Skip to main content
irama57948095
Inspiring
May 15, 2026
Question

How do I put in a missing space between punctuation and a capital letter?

  • May 15, 2026
  • 2 replies
  • 7 views

How do I put a missing space between punctuation and a capital letter? I’ve tried a few GREP codes but they aren’t working. Is there a find and change I can use? Or does anyone have a GREP code that definitely works?

 

Thanks.

    2 replies

    Mike Witherell
    Community Expert
    Community Expert
    May 15, 2026

    Hi Irama,

    Find What: (\p{punctuation})(\u)

    Change To: $1\s$2

    Look out that this doesn’t wreck web addresses. A way to avoid symbols like // in web addresses would be this approach in Find What: ([,.!?;:])(\u)

    I have here a comprehensive list of GREP codes for you to consult:

    https://trainingonsite.com/useful-resources/adobe-indesign/indesign-2026-resources.html

    Mike Witherell
    Abhishek Rao
    Community Manager
    Community Manager
    May 15, 2026

    Hi @irama57948095,

     

    Thanks for reaching out. Yes, you can achieve this using GREP Find/Change in InDesign.

    In the Find What field, please enter:
    ([[:punct:]])([A-Z])

    In the Change To field, enter:
    $1 $2

    This GREP expression will identify cases where punctuation is immediately followed by a capital letter and automatically insert a space between them. You can also refer to this HelpX article for more details on using GREP queries in InDesign:
    https://adobe.ly/3RHSNYM

    Before using Change All across the document, I'd recommend trying Find Next and Change first to verify that the results match the text patterns in your file.

    Please let us know how it goes.

     

    Thanks,
    Abhishek