Weird Grep behaviour (or please explain)

Participant ,
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

153

Likes

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

Advocate , 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.

Likes

Translate

Translate
Participant ,
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.

Likes

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
Advocate ,
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.

Likes

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
Advocate ,
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.

Likes

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

Copy link to clipboard

Copied

LATEST

Very helpful, thank you!!

Likes

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