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

Grep code for words with apostrophe within single qoutation mark

Tagged: 

Return to Member Forum

  • Author
    Posts
    • #96322

      Hello dear InDesign community.

      Help me please to edit my GREP code to make text italic within single quotation marks with words that contains apostrophe. I have a problem that it stops working on the first apostrophe in a sentence. GREP sees it as the right quotation mark.
      My GREP now is: ~[(.*?)~]

      Thanks a lot.

      Oksana

    • #98150
      Graham Park
      Member

      Oksana
      This should do the trick.

      (?<= )’\S+(?=’)’

    • #98153

      Humm! Could you type some text as sample?

      (^/)

    • #98154
      Graham Park
      Member

      Obi-wan
      I assumed it was to find and make it all italic
      ‘mark’s’
      ‘Oksana’s’

      Also my GREP probably got more complicated than it needed to be,
      this is simpler and does the job..

      (?<= )’\S+’

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