5 Replies Latest reply on Mar 28, 2009 5:13 AM by (Robert_Tkaczyk)

    Limit to number of GREP replacement text?

    (Michael_Diaz) Level 1
      Does anyone know if there is a limit to the number of replacement text (atoms) in InDesign GREP? I'm trying to parse data into 17 separate replacement text (atoms) but InDesign only seems to recognize $1, $2, $3, $4, $5, $6, $7, $8, and $9. InDesign GREP does not recognize $10, $11, $12, $13, etc. What InDesign GREP does instead is to insert $1 plus the number 0, 1, 2, 3, etc. So it seems that InDesign GREP has a limit of 9 replacement text (atoms). Is there a way to get InDesign to recognize more than 9?

      I know I can probably accomplish this in two separate searches, but I would rather do it correctly in one search.

      Here's my GREP example:

      FIND: ^(.{2})(.{11})(.{21})(.{8})(.{4})(.{11})(.{6})(.{5})(.{5})(.{11})(.{8})(.{37})(.{13})(.{1 4})(.{4})(.{10})(.*)\r

      CHANGE: $1\t$2\t$3\t$4\t$5\t$6\t$7\t$8\t$9\t$10\t$11\t$12\t$13\t$14\t$15\t$16\t$17\r

      EXMAPLE DATA (inside the brackets): [ 101317 ABC BRAKES USA LTD ABC 754 1 4C FULL 4C RU 11 STOP FAST 9 188216-XXXX-090600 XXXX 090030 C3 PROOF WAIVED HOR 3 COL ]

      I hope I explained the properly. Let me know if you need clarification.