Reply To: GREP: Lookahead question

#87546

Hi Aaron,

this can be done in two steps!

1. Remove manual bullets
Find what: •\x20(.)
Change to: $1 + applied bullet style

… will find a bullet, followed by a space, followed by any character (the any character is needed, because you can either apply formatting or change something >> with this trick you can do both in one go!)

2. Find the last bullet para
Find what: \r(?!.) + applied bullet style
Change to: nothing + + applied bullet last style

… will find a return with applied style bulletStyle, if it is not followed by a character with the same formatting. So it will find the last return in a range.

best
Kai

This article was last modified on August 17, 2016

Comments (0)

Loading comments...