Back

If your email is not recognized and you believe it should be, please contact us.

  • You must be logged in to reply to this topic.Login

Help with GREP (Indesign)

Return to Member Forum

  • Author
    Posts
    • #14332655
      Stacey Horne
      Participant

      I’m struggling with getting a specific GREP to work. I’m working on a large document and I want date (ie: December 1, 2019) to not break on two lines. I’ve created a GREP (see below), Within Indesign I have created a “NO BREAK” Character style; then applied the GREP to the specific Paragraph style. The GREP does not work.

      (January|February|March| April|May|June|July|August|September|October|November|December)\d+\d{2,4}

      If I remove the \d{2,4} at the end of the above, I have the Month and Date not broken. I think the problem may lie with the comma that appears after the date. Can anyone help?

    • #14332688
      Godfried Vonk
      Participant

      Maybe you could try this, just changing the part between the month and the year in .+
      (January|February|March| April|May|June|July|August|September|October|November|December).+\d{2,4}

    • #14332780

      (January|February|March|April|May|June|July|August|September|October|November|December)[\d,]+\d

      (^/) The Jedi

Viewing 2 reply threads
  • The forum ‘General InDesign Topics (CLOSED)’ is closed to new topics and replies.
Forum Ads