8 Replies Latest reply on Nov 9, 2012 1:39 AM by [Jongware]

    Trying to Use GREP To Identify Beginning of a Paragraph

    kmc27 Level 1

      I want to apply a character style to the first sentence in a paragraph. The challenge is these are not always traditional sentences. They can begin with a decimal point or a number. Here are a few examples.

       

      7.25” diamond accent bracelet. In sterling silver. Reg. $340
      Would want the character style only applied to "7.25” diamond accent bracelet."

       

      .04 ct. tw. diamond bangle bracelet by Brilliance. In sterling silver. Reg. $720

      Would want the character style only applied to "04 ct. tw. diamond bangle bracelet by Brilliance."

       

       

      Diamond accent earrings. In sterling silver. Reg. $120

      Would want the character style only applied to "Diamond accent earrings."

       

       

      I've used [\l\u\d\.], but that applies the character style to too much of the text. I've added the ^ to the beginning of the code, but that did not accomplish what I am trying to do, either.

       

      Thanks in advance for any ideas on this.