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

GREP expression for commas

Return to Member Forum

  • Author
    Posts
    • #89921

      I need to come up with a code in GREP to search for any letter that is followed by a standard carriage return followed by a letter or character other than a period. I need to replace everything except the standard carriage return. I can do most of this with the exception of the comma. I haven’t been able to figure out what expression or code to use to locate and keep a comma in GREP in the replacement text () followed by $#. I tried using just comma but that didn’t work. Can someone help me out please?

    • #89922

      Gregory, this sounds easy, but needs maybe a bit more explanation.

      However:
      The first character after a carriage return: \r\K[^.]
      All characters after a carriage return, that are not a period: \r\K[^.]+

      This will find also a return after a return and maybe too much …

      Kai

    • #89947

      Perfect, I can add that to what I already know. Thanks for the help.

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