Reply To: Finding partial words in italics

Home Page / Forums / General InDesign Topics (CLOSED) / Finding partial words in italics / Reply To: Finding partial words in italics

#14358863
Dhafir Photo
Participant

Hello David!
Let’s to dive
\S means any character except whitespace or break character, means horizontal white space and tab
so [\S]+ with find format italic, will match everything in italic except breaks.
Then put “non-joiner” (or any other zero width character such as “End Nested Style Here”) after the last italic character found.
Now, you’ll find the letters before and after non-joiner, and make it italic, by: \p{l*}*~j\p{l*}*
\p{l*} Any letter of any language
* Does not exist or exists many times
The trick is using the non-joiner as location pointing to the presence a letter \p{l*} in italic before or after it.

This article was last modified on February 17, 2022

Comments (0)

Loading comments...