Grep code for words with apostrophe within single qoutation mark

Learn / Forums / General InDesign Topics / Grep code for words with apostrophe within single qoutation mark

Tagged: 

Viewing 3 reply threads
  • 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
  • You must be logged in to reply to this topic.
>