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

Grep - what is the base syntax of InDesign grep

New Here ,
Feb 14, 2019 Feb 14, 2019

Copy link to clipboard

Copied

There are many regex syntax, one different from the other: .Net regex, Java regex, PCRE regex, Python regex. etc.

Some sites for checking regex expressions are just great - like Regex101 or RegExr [that is mentioned on InDesignSecrets], but it has different languages.

The RegExr supports only JavaScript and PHP/PCRE.

I really wish to know what is the base syntax of the Grep on InDesign?

If anyone kindly refer to documentation about the language that it is based on?

Thanks!

Views

2.6K
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 , Feb 18, 2019 Feb 18, 2019

According to Peter Kahrel's title "GREP in InDesign 3rd Edition" (ISBN: 978-0-9825083-6-7) - InDesign’s GREP uses the Boost libraries; information on these libraries is available from www.boost.org, especially Perl Regular Expression Syntax - 1.67.0

Votes

Translate
New Here ,
Feb 17, 2019 Feb 17, 2019

Copy link to clipboard

Copied

For I get no response for that, I think it will be acceptable to share what I assume to be 'InDesign grep flavor', though i can not know for sure.

I think it is based on Perl or PCRE engine.

I have tried to use the 'R' expression, like it is explained on regular-expressions.info and you can see it HERE.

It worked just great on InDesign. This expression is not widely supported - see HERE.

Votes

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
Enthusiast ,
Feb 17, 2019 Feb 17, 2019

Copy link to clipboard

Copied

Hi,

I found an article, that says “like the Unicode Character Properties that Perl uses. Maybe InDesign’s GREP uses the Perl Compatible Regular Expressions library”

Advanced InDesign/InCopy GREP Commands | Ryan Macklin

Votes

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 ,
Feb 18, 2019 Feb 18, 2019

Copy link to clipboard

Copied

LATEST

According to Peter Kahrel's title "GREP in InDesign 3rd Edition" (ISBN: 978-0-9825083-6-7) - InDesign’s GREP uses the Boost libraries; information on these libraries is available from www.boost.org, especially Perl Regular Expression Syntax - 1.67.0

If the answer wasn't in my post, perhaps it might be on my blog at colecandoo!

Votes

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