Welcome Dialog

Welcome to the Community!

We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.


GREP lookahead/lookbehind repetitions

Engaged ,
Jan 07, 2021 Jan 07, 2021

Copy link to clipboard

Copied

Hello!

 

Could it be, that grep (in a paragraph style) doesn't allow repetitions inside lookahead/lookbehind?

Bildschirmfoto 2021-01-07 um 17.13.11.png

 

My GREP:

(?<=^Art\.-Nr\.\t).+(?=\n|$) 

What happens:

Bildschirmfoto 2021-01-07 um 17.15.48.png

How can I reach everything after "Art.Nr.", except tabs??  😞

 

Regards

TOPICS
Print, Type

Views

318

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

Advisor , Jan 07, 2021 Jan 07, 2021
^Art\.-Nr\.\t+\K.+(?=$|\n)

Likes

Translate

Translate
Advisor ,
Jan 07, 2021 Jan 07, 2021

Copy link to clipboard

Copied

^Art\.-Nr\.\t+\K.+(?=$|\n)

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
Engaged ,
Jan 07, 2021 Jan 07, 2021

Copy link to clipboard

Copied

Thanks,

Will check this tomorrow.

 

Update:

It works on my Windows PC (ID CC 2020), but not on my Mac yet. I´ll keep trying... 🙂

 

Update2:

Now it works on my Mac (ID CC 2019) too, but without ^ at the beginning. Hell knows why... 

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
Advisor ,
Jan 08, 2021 Jan 08, 2021

Copy link to clipboard

Copied

Aha! Personally, I use a Mac and ID CC 2019 (and 2020)!  =D

 

(^/)  The Jedi

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
Adobe Community Professional ,
Jan 07, 2021 Jan 07, 2021

Copy link to clipboard

Copied

Hi @cmoke73,

wie unser französischer Freund schon absolut richtig geschrieben hat:

Verwende anstatt der alten gebräuchlichen Lookbehind-Notation die neuere – ich glaube mit CS6 zusätzlich eingeführte – Notation \K

 

Der Hintergrund ist:

Die bis dato gebräuchliche Variante (?<=) konnte/kann NICHT nach Zeichenplatzhaltern und/oder unterschiedlichen Zeichenlängen suchen.

Die neuere zusätzliche Variante \K kann das.

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
Engaged ,
Jan 07, 2021 Jan 07, 2021

Copy link to clipboard

Copied

Hallo!

Wo gibt es eine Sammlung neuer Notationen? Konnte nichts finden.

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
Adobe Community Professional ,
Jan 07, 2021 Jan 07, 2021

Copy link to clipboard

Copied

Ob es eine konkrete Sammlung neuer Notationen gibt - das kann ich nicht sagen.

Es gibt aber gute Auflistungen in Buch- bzw. PDF- Form von z.B. @Peter Kahrel

Such mal nach: www.google.com search filter | peter+kahrel+grep+in+indesign 

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
Engaged ,
Jan 08, 2021 Jan 08, 2021

Copy link to clipboard

Copied

Danke für den Tipp! Werde demnächst reinschauen.

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
Adobe Community Professional ,
Jan 07, 2021 Jan 07, 2021

Copy link to clipboard

Copied

@cmoke73:

 

This link may also be helpful. Note "CS6 and upwards" in the right column. 

http://www.jongware.com/idgrephelp.html

 

~Barb

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
Engaged ,
Jan 08, 2021 Jan 08, 2021

Copy link to clipboard

Copied

Hi.

 

There is no CS6 column. The right one only applies to CS4 / CS5 / CS5.5. 

Did I miss something?

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
Adobe Community Professional ,
Jan 09, 2021 Jan 09, 2021

Copy link to clipboard

Copied

LATEST

That is correct—there is no CS6 column, but in the right column, several commands show "CS6 and upwards", including the aforementioned \K.

k.png

 

~Barb

 

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