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

Regular Expression function for EasyCatalog/InDesign

New Here ,
Jan 23, 2024 Jan 23, 2024

Copy link to clipboard

Copied

Hi all

Hope you can help with the below. 

 

I am working with EasyCatalog plugin for InDesign and am trying to extract certain data from a cell with a function in a Custom Field Options. 

This is the usual data in the cell: 

 

<p>Yarn: 100% New Zealand Thin Wool or Tencel</p> <p>– Primary backing: 100% Polyester</p> <p>– Backing: 100% Polyester</p> <p>– Pile Height: 16mm</p>

 

I need to extract "Pile Height: (and the numbers) ". I spend the last 2 days reading about REGEX expressions etc. and I can't manage to do that no matter how I try. Could someone have any ideas?

 

Many thanks!

Miro.

TOPICS
Experiment , How to , Scripting

Views

102

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

Community Expert , Jan 23, 2024 Jan 23, 2024

Pile Height: 16mm

 

Regex

(?i)Pile\hHeight\:\h\d+?mm

 

Not sure if it's helpful for the catalog - but looks right to me

Votes

Translate

Translate
Community Expert ,
Jan 23, 2024 Jan 23, 2024

Copy link to clipboard

Copied

Pile Height: 16mm

 

Regex

(?i)Pile\hHeight\:\h\d+?mm

 

Not sure if it's helpful for the catalog - but looks right to me

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
New Here ,
Jan 23, 2024 Jan 23, 2024

Copy link to clipboard

Copied

LATEST

I seems to work! Thanks a lot! 

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