Answered
GREP solution last word?
Hi Gang,
How would you make a GREP to find the last word in the paragraph in order to italicize it?
Best,
Mike in Washington DC
Hi Gang,
How would you make a GREP to find the last word in the paragraph in order to italicize it?
Best,
Mike in Washington DC
[-\w]+[[:punct:]]+?$
i.e. string of word characters or hyphen, maybe followed by punctuation, at the end of a paragraph ($)
Or [-\w]+(?=[[:punct:]]+?$) if you want to capture just the word, not the end punctuation.
Peter
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.