• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

What is GREP for words with apostrophe within single quotation marks?

Explorer ,
Jul 24, 2017 Jul 24, 2017

Copy link to clipboard

Copied

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

[Moved from the Lounge (which is where you can "connect with your peers" from across all of Adobe's products for conversations that don't directly relate to help and support) to a product-specific support forum by a moderator.]

Views

1.1K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Enthusiast , Jul 24, 2017 Jul 24, 2017

I did

~[(.+?)~](?!\l)

and replaced with $1 (assuming you want to remove the quotes, of course...and maybe italicize them.

Votes

Translate

Translate
Enthusiast ,
Jul 24, 2017 Jul 24, 2017

Copy link to clipboard

Copied

Maybe try a negative lookahead and see when it is NOT followed by a lower case character? Because a closing single quote would be followed by a space, whereas an apostrophe would be followed by a lower case character (I would think).

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Jul 24, 2017 Jul 24, 2017

Copy link to clipboard

Copied

I did

~[(.+?)~](?!\l)

and replaced with $1 (assuming you want to remove the quotes, of course...and maybe italicize them.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jul 25, 2017 Jul 25, 2017

Copy link to clipboard

Copied

Dear Erica, thanks a lot.

It works perfectly.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Jul 25, 2017 Jul 25, 2017

Copy link to clipboard

Copied

LATEST

Excellent!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Jul 24, 2017 Jul 24, 2017

Copy link to clipboard

Copied

GREP_singlequotes.jpeg

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines