Finding Formatted Text
In the GREP tab you can constrain the GREP expression to text with certain formatting: both local formatting and a character and/or paragraph style. For example, to find all sequences of two or more capital letters that have been formatted as small caps, use the search pattern we saw earlier, \u\u+, and specify Small Caps in the Find Format area. Another example: let us think how we would go about finding paragraphs formatted in bold from beginning to end. To find a whole paragraph, we need to match from its beginning to its end and match everything in between:
^.+$
To find the paragraphs set from beginning to end in bold, simply enter this pattern, then go into Find Format and set Font Style to Bold in Basic Character Formats.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access