Back

If your email is not recognized and you believe it should be, please contact us.

  • You must be logged in to reply to this topic.Login

Select sentence in a paragraph with GREP and apply style

Return to Forums

  • Author
    Posts
    • #1177237
      Anonymous
      Inactive

      Hi:
      I have a paragraph with x sentences. I try only make visible the first sentence. I set a character style “INVISIBLE” but i do not know how to select the sentences from the second sentence of the paragraph.
      Thanks for any help.

    • #14324409
      David Blatner
      Keymaster

      I think this works:
      .+?[.!?]\K(.+?)$

    • #14324408
      Anonymous
      Inactive

      Many many thanks, David! Work perfectly

    • #14324407
      Anonymous
      Inactive

      A thousand apologies, again, David:
      I’m working on a TOC and the GREP takes even the numbering of the page (which has its own style). I have tried the following command but without any results:
      .+?[.!?]\K(.+?)[^\d{3}]$
      Or
      .+?[.!?]\K(.+?)[^\d{3}$]$
      I think that telling him to exclude the last two or three digits (it’s a text of more than 100 pages) from the block he takes might work.

Viewing 3 reply threads
  • The forum ‘General InDesign Topics (CLOSED)’ is closed to new topics and replies.
Forum Ads