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

GREP lookahead/lookbehind repetitions

Engaged ,
Jan 07, 2021 Jan 07, 2021

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
1.5K
Translate
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)

Translate
Guide ,
Jan 07, 2021 Jan 07, 2021

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

Translate
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

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

Translate
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

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

 

(^/)  The Jedi

Translate
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

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.

Translate
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

Hallo!

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

Translate
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

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 

Translate
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

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

Translate
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

@cmoke73:

 

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

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

 

~Barb

Translate
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

Hi.

 

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

Did I miss something?

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

 

Translate
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