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

GREP for select the third occurrence

Community Beginner ,
Jan 19, 2024 Jan 19, 2024

Hi,

I have an INDD document with hundreds of products ,each of which has 5 prices that I manage with conditional text. For each string of prices I should locate the third price with a GREP to be able to assign, with a global find/replace, a different condition.

 

For example, in the following strings I should select € 11,31 / € 1,60 / € 14,21 and so on 

 

€ 7,80€ 10,14€ 11,31€ 12,09€ 13,26

€ 1,10€ 1,43€ 1,60€ 1,71€ 1,87

€ 9,80€ 12,74€ 14,21€ 15,19€ 16,66

 

Thanks in advance for anyone who can help me.

TOPICS
How to , Type
288
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 2 Correct answers

Community Expert , Jan 19, 2024 Jan 19, 2024

This expression matches the third price in each line:

(€\h[\d,]+){2}\K€\h[\d,]+
Translate
Community Beginner , Jan 19, 2024 Jan 19, 2024

It’s perfect... thanks!

Translate
Community Expert ,
Jan 19, 2024 Jan 19, 2024

This expression matches the third price in each line:

(€\h[\d,]+){2}\K€\h[\d,]+
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 Beginner ,
Jan 19, 2024 Jan 19, 2024
LATEST

It’s perfect... thanks!

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