Skip to main content
Bedazzled532
Inspiring
July 3, 2024
Answered

GREP / Regex Flavour in InDesign

  • July 3, 2024
  • 1 reply
  • 786 views

Hi

I would like to know what is the Flavour/Version of GREP/RegEx used by Adobe InDesign ?

 

There are many flavours like PCRE v1, PCRE v2, PERL, Java, Python, ECMA.

 

I see most of the regex written in Notepad++ works in InDesign except few.

 

I try most of the regex in Notepad++ and regex101 site first and then use it in InDesign.

 

Thanks

 

This topic has been closed for replies.
Correct answer James Gifford—NitroPress

The standard reference for InDesign GREP is @Peter Kahrel's GREP in InDesign.

 

The Resources section of that book says, "InDesign's GREP uses the Boost libraries" (long URL follows from www.boost.org, excuse me for not typing it all in but it does contain the folder string 1_67_0, which I assume indicates a version or fork).

 

Hope that's useful. As the implementation is very specific/tailored to InDesign, you would probably find Peter's book useful.

1 reply

James Gifford—NitroPress
Braniac
July 3, 2024

The standard reference for InDesign GREP is @Peter Kahrel's GREP in InDesign.

 

The Resources section of that book says, "InDesign's GREP uses the Boost libraries" (long URL follows from www.boost.org, excuse me for not typing it all in but it does contain the folder string 1_67_0, which I assume indicates a version or fork).

 

Hope that's useful. As the implementation is very specific/tailored to InDesign, you would probably find Peter's book useful.

Bedazzled532
Inspiring
July 4, 2024

@James Gifford—NitroPress Thank you so much. Your answer was very helpful.