2 Replies Latest reply on Nov 5, 2014 8:31 PM by Kai Rübsamen

    Complicated GREP style to bold a colon and escape a colon

    MadMac55 Level 1

      Here is my challenge in a one-size-fits-all GREP style.   I am trying to write a grep style will make an exception for the colon in 7:30 but will bold all characters and including the colon in the “Today” example.

       

      here is what I have tried   >>   ^[^?!:]+:      This does a good job forgetting any subsequent colons and trapping the first one in Bold.  However, it will bold all the characters including the colon in the first example.

       

      So I then tried to combine the first part of the GREP with this >>  (\d:\d)   but that didn't do anything. 

       

       

      The quick brown fox jumped over the lazy dog’s back at 7:30 pm. He was late for an appointment.


       

      Today: Watch the quick brown fox jumped over the lazy dog’s back at 7:30 pm. He was late for an appointment.



      Should I be exploring a Match?

       

       

      Thanks, everyone.