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

FindChangeList grep and period

Return to Member Forum

  • Author
    Posts
    • #90524
      Jean Ayotte
      Member

      I tried this morning to edit my custom FindChangeList to add some nonbreaking spaces after some French abbreviations.

      This works well:
      grep {findWhat:”(?<=Mme)>s”} {changeTo:”~S”}

      But I am unable to do the same for “M.” (French equivalent of Mr)

      I have tried {findWhat:”(?<=M.)>s”} (double escape before period), {findWhat:”(?<=M\.)>s”} (single escape) and {findWhat:”(?<=M[.])>s”} (character set to avoid escaping the period) – to no avail?

    • #90541
      Peter Kahrel
      Participant

      What about this:

      “(?<=M.)s" For some reason InDesign gets confused by \> in the place where you had it. No idea why.

      Peter

    • #90597
      Jean Ayotte
      Member

      Thank you Peter, it works! And I realize that the end of word is not needed there.

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