I want to find all textblocks in InDesign with Grep that are between "Article: " and "— " I already tried to understand what they do here: https://indesignsecrets.com/findbetween-a-useful-grep-string.php but honestly I don't understand it. Basically

So e.g. this is what I have multiple times (of course with different numbers) and I want to find the bold highlighted block

(?<=Article:\t).*?(?= —)

I suppose it must be something like

(?<=Article:    ).*?(?=  —)

but that doesn't deliver me anything

  • But do you really have that many spaces or did you intend to use \t? – joojaa Jul 1 at 12:43
  • @joojaa I intended to use \t but Stackexchange transformed that. Originally the code is (which doesn't work is (?<=Article:\t).*?(?= —) – Daiaiai Jul 1 at 12:53
  • Is it better now? – joojaa Jul 1 at 13:14
  • @joojaa How you mean? Still I get nothing output (as I didn't change anything :)) – Daiaiai Jul 1 at 13:26
  • 1
    I fixed the question text for you still no idea what the other regex is supposed to be – joojaa Jul 1 at 13:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.