2

I imported this tabbed text from Microsoft Word into Indesign as shown in the attachment.enter image description here

I am attempting to replace every second tab in this text into no character ie any tab number that is divisible by 2.

Can this be done with a GREP find change in Indesign please?

Hope this clarifies what I need.

Thankyou!

  • I think you forgot to post the image/link to the attachment – Billy Kerr Oct 8 '18 at 9:23
  • I hope you can see the image. I tried the first suggestion putting ^t^tin the find field of the find change dialogue box and then replacing with ^t but to no avail. Can anyone help? – Jonathan Beech Oct 8 '18 at 9:37
  • "Every second tab" is ambiguous. What you mark in the image is "every last tab" -- and, even more specific, "only that single tab at the end of each line". (This also happens to make the required GREP considerably easier.) – usr2564301 Oct 8 '18 at 10:01
  • You don't need any GREP to delete a tab character before an end paragraph character... Just find/replace ^t^p by ^p. – user120647 Oct 8 '18 at 10:26
2

OK, there are 2 tactics that you can take here. You could match what you ask, its a bit tricky it would be easier to match "line ending in tab", which would solve your current situation more easily:

in grep find what:

\t$

replace by (nothing):

But off course what you ask can also be matched with the GREP:

fid what:

(\t[^\t]*)\t

"Tab followed by anything not tab put this in replacement group 1 and followed by tab"

replace by:

$1

"Replacement group 1"

| improve this answer | |
  • Sorry maybe I am being misunderstood. I want to target every second character as shown in the image attached. Thanks for the input. – Jonathan Beech Oct 8 '18 at 9:38
  • @JonathanBeech every other on each paragraph? – joojaa Oct 8 '18 at 9:51
  • Yes please. Thats what I am after – Jonathan Beech Oct 8 '18 at 9:52
  • Excellent. That was just the job thank you. I shall look into using GREP a little more. I have used it in the past in a limited capacity but clearly don't have your GREP chops – Jonathan Beech Oct 8 '18 at 10:06
  • @JonathanBeech I suggest reading Mastering regular expressions – joojaa Oct 8 '18 at 10:54

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.