Article View: adobe.scripting.indesign
Article #74Limit to number of GREP replacement text?
From: Michael_Diaz
Date: Fri, 27 Mar 2009 18:38
Date: Fri, 27 Mar 2009 18:38
13 lines
1684 bytes
1684 bytes
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})(.{14})(.{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.
Technical Details
Message-ID:
<59b86e14.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!newsfeed.news2me.com!newshub.sdsu.edu!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: f939a,8d5304158d58b65a,start X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Michael_Diaz@adobeforums.com Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!newsfeed.news2me.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Limit to number of GREP replacement text? Message-ID: <59b86e14.-1@webcrossing.la2eafNXanI> Date: Fri, 27 Mar 2009 11:38:35 -0700 Lines: 27 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit