8 Replies Latest reply on Feb 23, 2013 8:59 PM by RobertKyle

    Grep style: x words, maybe with punctuation

    RobertKyle Level 2

      I'm looking for a way to apply a character style when there's a dash within the first 6 words of the beginning of a paragraph. I've gotten this far:




      But it fails if there is any punctuation before the dash. This is for formatting datelines, so there will be commas and periods and hyphens. How can I count words in this messy language of ours?