Grep question

Tagged: 

Viewing 4 reply threads
  • Author
    Posts
    • #68088
      Gert Verrept
      Member

      I ran into a little problem using a grep F&C. As far as I can see, you can only go as far as $0 till $9 in the change field.
      Is this indeed the case, or is there a workaround for a $10? Maybe I will never have to use it again, but I just wanted to know.

    • #68227
      Masood Ahmad
      Participant

      Hey Gert, you can club continuous marking sub-expression into one for ex:

      (dkjfkdjkjd)(dkfkdjfjd)(jfkdjjfdkj)

      It will be recalled as $1 $2 $3

      or you can do it like this:

      ((dkjfkdjkjd)(dkfkdjfjd)(jfkdjjfdkj))

      it can be recalled with one found: $1

      try it…

    • #68238
      Gert Verrept
      Member

      Thnkx. I knew this one, but you cannot change anything in the second case. We had to add something to almost every “$x”.
      By regrouping we ended up with a $7.

    • #68240
      Masood Ahmad
      Participant

      Sorry for now, might be in future, InDesign will allow unlimited Founds.

    • #68257

      One workaround is to copy the text to BBEdit and do the grep there. BBEdit goes up to $99 or actually it uses \1 to \99

Viewing 4 reply threads
  • You must be logged in to reply to this topic.
>