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 Adjustment – I made mine work, was wondering why it breaks when i change it

Return to Member Forum

  • Author
    Posts
    • #14365229
      Nathan Rule
      Participant

      So i wanted to bold text after a comma. I made this Grep (?<=\,).+(?=\r)
      It works fine. Its just names and titles.

      However i thought it would be cool to adjust it so it didnt bold the comma. When i change [.+] to any word character it doenst bold anything.

      What am i missing on the creation of the Grep?
      Also why am i not able to uplad an image like the forum was able to before?

    • #14365231
      Nathan Rule
      Participant

      I meant so that the grep didnt bold a second comma if the person had two titles in their name: Lori Labrum, PE, PTOE

    • #14365272
      Aaron Troia
      Participant

      So is it consistent with the other names like “Bob Andersen, PE” throughout but some just have more than one title such as Lori, “Lori Labrum, PE, PTOE” and you are only bolding though one title? If the first title consistent with 2-4 capital characters you might be able to do something like this:

      (?<=\, ).+?, [A-Z]{2,4}

      • #14365274
        Nathan Rule
        Participant

        No the grep i used works fine bolds all titles – it works for what i was needing it for.

        I was wondering how to get it to do the same thing but not apply it to the comma inbetween the second title.

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