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

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

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

Guide , Jan 07, 2021 Jan 07, 2021

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

Votes

Translate

Translate
Guide ,
Jan 07, 2021 Jan 07, 2021

Copy link to clipboard

Copied

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

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

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

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

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

Copy link to clipboard

Copied

Hallo!

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

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

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

Copy link to clipboard

Copied

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

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

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
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?

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

 

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