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

Find And Change Case Sensetive?

Explorer ,
Jan 23, 2017 Jan 23, 2017

Copy link to clipboard

Copied

Example: Find: Ahmet Change: Mehmet Find: AHMET Change: MEHMET Find: AHmEt Change: MEhMt But the script should detect it. 🙂

TOPICS
Scripting

Views

2.5K

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
Guide ,
Jan 23, 2017 Jan 23, 2017

Copy link to clipboard

Copied

Case sensitive available only in Text search, unfortunately GREP search not allowing this

    app.findChangeTextOptions.caseSensitive = true;

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
Advisor ,
Jan 24, 2017 Jan 24, 2017

Copy link to clipboard

Copied

To ignore case when using find grep you can specify the (?i) flag. Unfortunately, the change will not respect the original case. Eg:

find: (?i)ahmet

will match Ahmet, ahmet, AhMeT etc.

but
find: (?i)ahmet
change: mehmet

will change everything to lowercase.

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 ,
Jan 24, 2017 Jan 24, 2017

Copy link to clipboard

Copied

thanks but I did not exactly say what I meant.

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 ,
Jan 24, 2017 Jan 24, 2017

Copy link to clipboard

Copied

But not working

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
Advisor ,
Jan 24, 2017 Jan 24, 2017

Copy link to clipboard

Copied

LATEST

That is what i said. There is no way to get what you want.
You can find all instances of ahmet, regardless of it's case, but you can only replace them with "mehmet" lower case (or however you typed it in the "Change to" field.

Consider this example:

the before text in indesign is: 

AhMet ahmet aHMet

you are searching for "ahmet" case insensitive. "Ahmet" has 5 characters, and it will be found in the source text 3 times.

you try to replace "ahmet" with "Mahmud", which has 6 characters. Which of the letters form each match should be capitalised?

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