Skip to main content
dublove
Legend
April 7, 2025
Question

With nested styles: is there any way to control the last character of an irregular paragraph?

  • April 7, 2025
  • 1 reply
  • 477 views

With nested styles: is there any way to control the last character of an irregular paragraph.

For example, the two paragraphs below are basically the same, except that the first paragraph has two extra sets of brackets.
I now want to use only one paragraph style, nested control of the last "(Idealism)" and "(Best Memories)".

Characterless styles are applied to the text before them.


Is it possible? Or do I have to use regular?

I feel that nested styles are rigid and inflexible.

Author Resume: Zhang Hai (1900-1925) (Male), Sea Air Defense Identification Zone Aircraft Identification Rules (Announcement) Sea Air Defense Don't Zone Aircraft Identification Rules Announcement (Idealism).

Author Resume: Zhang Hai (1900-1925) Male, Sea Air Defense Identification Zone Aircraft Identification Rules Bulletin Sea Air Defense Don't Zone Aircraft Identification Rules Bulletin (Best Memories).

1 reply

Peter Spier
Community Expert
Community Expert
April 7, 2025

You coulf use a GREP style.

(?<=\().+?(?=\)\.\r)

dublove
dubloveAuthor
Legend
April 7, 2025

I'm very curious to see if nested styles can be implemented.

Peter Spier
Community Expert
Community Expert
April 7, 2025

Since you may or may not have text in parentheses before tyhe text you want to capture there is really no way to trigger a regular nested style.