Article View: adobe.scripting.indesign
Article #86Re: Limit to number of GREP replacement text?
From: Robert Tkaczyk
Date: Sat, 28 Mar 2009 13:13
Date: Sat, 28 Mar 2009 13:13
17 lines
1305 bytes
1305 bytes
my understanding of your GREP rule:
^ <- beggining of paragraph
(.{x}) <- exactly x any characters - including letter, numbers and white spaces except \r and \n
(.*) <- 0 or more of any character - including letter, numbers and white spaces except \r and \n
\r <- end of paragraph
so - after counting all numbers - your line should find all lines with minimum number of 171 characters ...
without spaces between (.{x}) - your line is equal to:
^(.{171,})\r
robin
--
www.adobescripts.com
Technical Details
Message-ID:
<C626EB22B2421572283EB6758773B266@in.webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossingReferences:
<59b86e14.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,8d5304158d58b65a X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Robert Tkaczyk <indesignscripts@wp.pl> Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Re: Limit to number of GREP replacement text? Message-ID: <C626EB22B2421572283EB6758773B266@in.webcrossing.la2eafNXanI> Date: Sat, 28 Mar 2009 06:13:15 -0700 References: <59b86e14.-1@webcrossing.la2eafNXanI> Lines: 20 User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) X-Antivirus: avast! (VPS 090326-0, 2009-03-26), Outbound message X-Antivirus-Status: Clean MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit