Skip to main content
noob1212121
Known Participant
Jan 29, 2023 1:32 AM UTC
Answered

I am stumped by grep (again...)

I have tried a few variations, but this is not working.

[\h{\dvxi}+\]    I am trying to find numbers {ddd} in curly brackets up to 3...

can someone please help...

This topic is closed to new replies. Start a new post to keep the conversation going.
brian_p_dts
brian_p_dtsCorrect answer
Community Expert
Jan 29, 2023 2:36 AM UTC

Up to three numbers in curly brackets would be: \{\d{1,3}\}

 

But you have roman numerals in your query. Are you trying to find three roman numerals in curlies? 

4 replies

m1b
Community Expert
Community Expert
Jan 29, 2023 2:59 AM UTC

I notice you tagged "Scripting", If you are writing a script, are you using Indesign's findGrep, or ExtendScript's RegExp? They are a bit different. - Mark

Translate
noob1212121
Known Participant
Jan 29, 2023 4:51 PM UTC

Indesign find grep is my usual nemesis

Translate
brian_p_dts
Community Expert
brian_p_dtsCommunity ExpertCorrect answer
Community Expert
Jan 29, 2023 2:36 AM UTC

Up to three numbers in curly brackets would be: \{\d{1,3}\}

 

But you have roman numerals in your query. Are you trying to find three roman numerals in curlies? 

Translate
noob1212121
Known Participant
Jan 29, 2023 4:48 PM UTC

No roman numerals; this worked for you so much!

Translate