GREP help

Tagged: , ,

Viewing 1 reply thread
  • Author
    Posts
    • #72592

      I’m trying to figure out the correct GREP expression to modify a long list of names in the back section of our alumni magazine. I’d like to create a GREP Style within the Paragraph Style to make the names of any alumni bold. But the formatting of the names varies. Sometimes it is just a first name and last name followed by an apostrophe and their two digit graduation year, like below:
      “Elizabeth Arnold ’12 and Jeremy Raff married June 22, 2013. The couple lives in Wynnewood, Pa.”

      But sometimes it is a married female, so it would be first name, (maiden name) last name, apostrophe, two digit graduation year, like below:

      “Trina (Wolgemuth) McSorley ’86 serves on the Board of Family Promise of Cape May County.”

      And sometimes it is two alumni who’ve gotten married:

      “Corrine Stolzenburg ’09 and Clark Wenger ’09 married July 28, 2012. The couple lives in Albuquerque, N.M.”

      Is there a way to write a GREP expression that can search for two or three capitalized words preceding an apostrophe and two digits? The graduation year is the only consistent formatting that indicates an alumni.

      Here’s what I’ve done so far to try to figure it out. The section in our alumni magazine is called “class notes”, I’ve created a Character Style for “class notes bold”. And then in the Paragraph Style for class notes I’ve created a GREP style that applies “class notes bold” up to the first two digits it finds in a row, this works really well since the alumni’s name is formatted at the beginning of the paragraph, but I don’t know what to do when there are two alumni in one paragraph or if another set of numbers (such as 25 years of service at their company) are listed in the paragraph it messes with the formatting.

      I’d appreciate any help you could offer!

    • #72594

      This is the GREP I’m using by the way:

      (~]\d\d)

      I’m thinking there would be a way with Look Behind or Look Ahead of the two digits but I don’t know enough about GREP to make it work correctly!

Viewing 1 reply thread
  • You must be logged in to reply to this topic.
>