More InDesign GREP Codes
Most of these you can do with brackets, and I haven’t tried all of these, but I’ve still found the commands I have used super-helpful. (U+ means that’s a unicode specification.)
Letters
Letter | \p{letter} |
Lowercase letter | \p{lowercase_letter} |
Uppercase letter | \p{uppercase_letter} |
Titlecase letter | \p{titlecase_letter} |
Spacing modifier letter | \p{modifier_letter} |
Non-case non-modifier letters | \p{letter_other} |
Numbers
Numbers | \p{number} |
Digits 0 to 9 | \p{decimal_digit_number} |
Roman numerals | \p{letter_number} |
Other numbers | \p{other_number} |
Punctuation
Punctuation | \p{punctuation} |
Hyphens and dashes | \p{dash_punctuation} |
Opening parentheses, braces | \p{open_punctuation} |
Closing parentheses, brackets | \p{close_punctuation} |
Opening quotes | \p{initial_punctuation} |
Closing quotes | \p{final_punctuation} |
Underscore, U+203F, U+2040, U+2054 | \p{connector_punctuation} |
Other punctuation | \p{other_punctuation} |
Spaces and Separators
Spaces, returns, line separator character, paragraph separator | \p{separator} |
All spaces except tab & return | \p{space_separator} |
Line separator character (U+2028) | \p{line_separator} |
Paragraph separator (U+2029) | \p{paragraph_separator} |
Symbols
Math and Wingdings | \p{symbol} |
Math symbols | \p{math_symbol} |
Currency symbols | \p{currency_symbol} |
Modifier symbols | \p{modifier_symbol} |
Wingdings, dingbats | \p{other_symbol} |
Marks
Marks | \p{mark} |
Diacritical and tone marks | \p{non_spacing_mark} |
Vowels SE Asian languages | \p{spacing_combining_mark} |
Circles, squares, keycaps | \p{enclosing_mark} |
Other
Other | \p{other} |
Control characters | \p{control} |
Formatting character markers | \p{format} |
Unicode E000–F8FF | \p{private_use} |
Unassigned Unicode range | \p{unassigned}
|
출처: http://ryanmacklin.com/2014/09/advanced-indesign-grep-commands/