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

Weird Grep behaviour (or please explain)

Contributor ,
Nov 05, 2020 Nov 05, 2020

Copy link to clipboard

Copied

Hi

 

In my Document i have hundreds of strings like "<<19001>>".

When i use text/grep search and enter "<<19001" its ok, but once i close it with ">>", InDesign completes the number with a leading zero: "<<019001>>". This way i can't find my strings.

Nov-05-2020 13-34-42.gif

What's happening here?

 

Assuming in "<<XXX>>" the XXX part is dynamic (cause it trigger grep with script), whats the best approach to make sure my string(s) are NOT changed - some command like "find exactly that - and please don't modify it"

 

Regards

pat

TOPICS
Scripting

Views

244

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

Community Expert , Nov 05, 2020 Nov 05, 2020

Correction... This is also in CC2020, CC2019 and even CS6.

When InDesign see an open < and > symbol, he replace it with a character base on the unicode value.
Ex: If I enter this <00EE> it will appears as î inthe search GREP field. 

So that mignt be as a designed behavior.

Votes

Translate

Translate
Contributor ,
Nov 05, 2020 Nov 05, 2020

Copy link to clipboard

Copied

I think i found a solution, can someone confirm this or recommend a better one?

"<<(?:XXX)>>"

Works for 

"<<(?:19001)>> "

and other content.

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
Community Expert ,
Nov 05, 2020 Nov 05, 2020

Copy link to clipboard

Copied

You are using CC2021, right? I can see the same behavior on my side. Not in CC2020.

Workaround for me is to use this <{2}1234>{2}
Or use the unicode value for < and > like \x3C\x3C0123\x3E\x3E

Copy paste from a text frame don’t work.

Definately a bug with CC2021. I suggest you report it as soon as you can so they can fix it in any upcoming 16.0.1 version
Do so here: https://indesign.uservoice.com
Come back to share the link to is so we can Vote for it.

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
Community Expert ,
Nov 05, 2020 Nov 05, 2020

Copy link to clipboard

Copied

Correction... This is also in CC2020, CC2019 and even CS6.

When InDesign see an open < and > symbol, he replace it with a character base on the unicode value.
Ex: If I enter this <00EE> it will appears as î inthe search GREP field. 

So that mignt be as a designed behavior.

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
Contributor ,
Nov 05, 2020 Nov 05, 2020

Copy link to clipboard

Copied

LATEST

Very helpful, thank you!!

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